@@ -5,7 +5,7 @@ name: auto-merge dependabot prs into collected branch
55on :
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
1111permissions :
@@ -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