Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
GIT_TAG: v${{ github.event.inputs.releaseVersion }}
RELEASE_VERSION: ${{ github.event.inputs.releaseVersion }}
NEXT_VERSION: ${{ github.event.inputs.nextVersion }}
permissions:
contents: write

steps:
- name: Check parameters
Expand All @@ -54,6 +56,7 @@ jobs:
with:
fetch-depth: '0'
submodules: 'true'
token: ${{ secrets.NESSIE_BUILDER }}

- name: Check commit status
run: |
Expand Down Expand Up @@ -111,16 +114,7 @@ jobs:

- name: Push tag + branch
run: |
# Push directly using the remote repo URL, which includes the secret so this job can push to the repo
UPSTREAM="https://${{ secrets.NESSIE_BUILDER }}@github.com/${GITHUB_REPOSITORY}.git"

# Move the default auth settings in ~/.gitconfig out of the way, so the git-push can use the token
git config --rename-section http.https://github.com/ http.https://save.github.com/

git push --no-verify "${UPSTREAM}" HEAD:${GITHUB_REF} ${GIT_TAG}

# Move the default auth settings in ~/.gitconfig back
git config --rename-section http.https://save.github.com/ http.https://github.com/
git push --no-verify origin HEAD:main ${GIT_TAG}

- name: Prepare Release Notes
id: prep_release
Expand Down