Skip to content

Commit 59e16a5

Browse files
authored
Merge pull request #65 from CCPBioSim/jimboid-patch-1
repo not fetching depth 0
2 parents 1645dfd + 5cee928 commit 59e16a5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/version.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
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

0 commit comments

Comments
 (0)