Skip to content

Commit 4f2e826

Browse files
authored
Merge pull request #248 from TechnologyEnhancedLearning/ci-dependabot-setup
chore(dependabot): automerge
2 parents 6639ec2 + 098a925 commit 4f2e826

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/automerge-dependabot-prs-into-collected-branch.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: auto-merge dependabot prs into collected branch
55
on:
66
pull_request:
77
types: [opened, synchronize]
8-
branches: [Automatic_version_update_dependabot] # make sure this matches your actual branch name
8+
branches: [Automatic_version_update_dependabot]
99

1010

1111
permissions:
@@ -41,27 +41,26 @@ jobs:
4141
- name: Checkout the repository
4242
uses: actions/checkout@v4
4343

44-
# - name: Set up GitHub CLI
45-
# run: |
46-
# # Install GitHub CLI (gh)
47-
# sudo apt-get update
48-
# sudo apt-get install gh
49-
5044
- name: Set up GitHub CLI
51-
uses: github/gh-cli@v2
45+
run: |
46+
# Install GitHub CLI (gh)
47+
sudo apt-get update
48+
sudo apt-get install gh
5249
5350
- name: extract update type
5451
id: extract
5552
env:
5653
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5754
run: |
58-
echo "get pr number"
59-
pr_title=${{ github.event.pull_request.title }}
55+
echo "get pr title"
56+
pr_title="${{ github.event.pull_request.title }}"
6057
echo "PR title: $pr_title"
61-
if [[ $pr_title == *"(major)"* ]]; then
58+
if [[ "$pr_title" == *"(major)"* ]]; then
6259
echo "update_type=major" >> $GITHUB_OUTPUT
60+
echo "Detected major update"
6361
else
6462
echo "update_type=minor_or_patch" >> $GITHUB_OUTPUT
63+
echo "Detected minor or patch update"
6564
fi
6665
6766
- name: auto-merge minor and patch updates

0 commit comments

Comments
 (0)