File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 - name : checkout
2121 uses : actions/checkout@v6.0.0
2222 with :
23- ref : main
23+ # ref: main
2424 fetch-depth : 0
2525
2626 - name : set user profile
@@ -42,15 +42,19 @@ jobs:
4242 echo "no changes detected"
4343 else
4444 if [ -z "$(git branch --list version-updates)" ]; then
45+ echo "no branch version-updates, creating"
4546 git checkout -b version-updates
4647 else
48+ echo "branch exists, checking it out"
4749 git checkout version-updates
4850 fi
4951 git add .
5052 git commit -am "update ${{ github.event.client_payload.repo }} version to ${{ github.event.client_payload.tag }}"
5153 if [ -z "$(git ls-remote --heads origin version-updates)" ]; then
54+ echo "branch does not have upstream set, setting"
5255 git push --set-upstream origin version-updates
5356 else
57+ echo "pushing changes"
5458 git push
5559 fi
5660 fi
You can’t perform that action at this time.
0 commit comments