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
7 changes: 6 additions & 1 deletion .github/workflows/release-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Release Stable Version
on:
workflow_dispatch:
permissions:
actions: write
contents: write
pull-requests: write

Expand Down Expand Up @@ -107,14 +108,18 @@ jobs:
git config user.email $GIT_USER_EMAIL
git push --atomic --set-upstream origin HEAD $TAG_NAME

# Uses the built-in token, so no personal access token has to be kept valid.
# Pushes and pull requests made with it don't trigger workflows, so the required
# "Build" check is started explicitly; workflow_dispatch is exempt from that rule.
- name: Create GitHub PR
env:
GH_TOKEN: ${{ secrets.PAT }}
GH_TOKEN: ${{ github.token }}
RELEASE_VERSION: ${{ steps.removeSnapshotSuffix.outputs.RELEASE_VERSION }}
CHECKOUT_BRANCH_NAME: ${{ github.ref_name }}
PR_BRANCH_NAME: ${{ steps.createPrBranchName.outputs.PR_BRANCH_NAME }}
run: |
gh pr create --title "Release $RELEASE_VERSION" --body "" --base "$CHECKOUT_BRANCH_NAME" --reviewer ${{ github.actor }}
gh workflow run build.yml --ref "$PR_BRANCH_NAME"
gh pr merge $PR_BRANCH_NAME --auto --rebase --delete-branch

- name: Create Draft Release
Expand Down
Loading