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
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ jobs:
if: github.event_name == 'workflow_dispatch'
env:
VERSION: ${{ github.event.inputs.version }}
RELEASE_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
git config --global --add safe.directory "$GITHUB_WORKSPACE"
Expand All @@ -158,7 +159,10 @@ jobs:
# actions/checkout leaves the repo in a detached HEAD state for
# workflow_dispatch on a branch, so push HEAD explicitly to main.
git push origin "HEAD:${GITHUB_REF_NAME}"
git push origin "refs/tags/${VERSION}"
# GITHUB_TOKEN does not trigger a new workflow run, so the tag
# created by this manual release cannot start a duplicate release.
git push "https://x-access-token:${RELEASE_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" \
"refs/tags/${VERSION}"

- name: Verify Cypress
run: npx cypress verify
Expand Down
Loading