Skip to content

Commit 36dbcc3

Browse files
authored
Fix staging workflow (#6291)
1 parent af7a182 commit 36dbcc3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/release-staging.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
name: Staging Release
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
workflow_dispatch:
3+
on: workflow_dispatch
84

95
jobs:
106
deploy:
117
name: Staging Release
128
runs-on: ubuntu-latest
9+
# Allow GITHUB_TOKEN to have write permissions
10+
permissions:
11+
contents: write
1312

1413
steps:
1514
- name: Set up Node (14)
@@ -21,7 +20,7 @@ jobs:
2120
with:
2221
github-token: ${{ secrets.GITHUB_TOKEN }}
2322
script: |
24-
github.repos.merge({
23+
github.rest.repos.merge({
2524
owner: context.repo.owner,
2625
repo: context.repo.repo,
2726
base: 'release',

0 commit comments

Comments
 (0)