We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0197076 commit 2d6a414Copy full SHA for 2d6a414
.github/workflows/release-staging.yml
@@ -3,9 +3,19 @@ name: Staging Release
3
on: workflow_dispatch
4
5
jobs:
6
+ warn:
7
+ name: Warn If Wrong Branch
8
+ runs-on: ubuntu-latest
9
+ # Log a warning if run in a non-release branch.
10
+ if: github.ref != 'refs/heads/release' && !endsWith(github.ref, '-releasebranch')
11
+ steps:
12
+ - name: Log warning
13
+ run: echo "This workflow must be run in a release branch. It is being run in ${{ github.ref }}."
14
deploy:
15
name: Staging Release
16
runs-on: ubuntu-latest
17
+ # Block this workflow if run in a non-release branch.
18
+ if: github.ref == 'refs/heads/release' || endsWith(github.ref, '-releasebranch')
19
# Allow GITHUB_TOKEN to have write permissions
20
permissions:
21
contents: write
0 commit comments