fix: configure git auth for tag push in release job
The manual git clone doesn't set up HTTPS credentials like actions/checkout did. Configure the extraheader with GITHUB_TOKEN so git push can authenticate when creating release tags.
This commit is contained in:
parent
1fc80b9c0a
commit
2eb35e94e9
1 changed files with 3 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ jobs:
|
||||||
apt-get update && apt-get install -y --no-install-recommends bash git python3 ca-certificates
|
apt-get update && apt-get install -y --no-install-recommends bash git python3 ca-certificates
|
||||||
git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git .
|
git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git .
|
||||||
git checkout ${GITHUB_SHA}
|
git checkout ${GITHUB_SHA}
|
||||||
|
git config --local http.${GITHUB_SERVER_URL}/.extraheader "AUTHORIZATION: basic $(echo -n "x-access-token:${GITHUB_TOKEN}" | base64 -w0)"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Determine version bump
|
- name: Determine version bump
|
||||||
id: version
|
id: version
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue