Skip to content

Commit 8e2c20d

Browse files
committed
try setting the token explicitly
1 parent 99f1a02 commit 8e2c20d

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/build-and-release.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,18 @@ jobs:
3737
token: ${{ steps.app-token.outputs.token }}
3838
repository: github/backup-utils
3939
- name: Create empty commit in backup-utils
40-
id: empty_commit
41-
run: |
42-
git config user.name "release-controller[bot]"
43-
git config user.email "[email protected]"
44-
git fetch origin tims-test-branch
45-
git checkout tims-test-branch
46-
git commit --allow-empty -m "${{ github.event.inputs.version }} release"
47-
git push origin tims-test-branch
48-
echo "commit-sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
40+
id: empty_commit
41+
env:
42+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
43+
run: |
44+
git config user.name "release-controller[bot]"
45+
git config user.email "[email protected]"
46+
git remote set-url origin https://[email protected]/github/backup-utils.git
47+
git fetch origin tims-test-branch
48+
git checkout tims-test-branch
49+
git commit --allow-empty -m "${{ github.event.inputs.version }} release"
50+
git push origin tims-test-branch
51+
echo "commit-sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
4952
# create tags for the build scripts to work
5053
# if empty_commit is successful, then echo success
5154
- name: Echo success

0 commit comments

Comments
 (0)