Skip to content

Commit 16b0c3a

Browse files
authored
Fix permissions issue. (#3247)
The release workflow requires additional permissions to post the release.
1 parent 337b80a commit 16b0c3a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/no-response_publish.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ on:
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
1820
if: ${{ github.repository == 'flutter/cocoon' }}
1921
steps:
2022
- name: Checkout
2123
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
2224
with:
23-
ref: ${{ github.event.release.tag_name }}
25+
ref: 'no-response-v0.5.1'
2426
sparse-checkout: 'gh_actions/third_party/no-response'
2527
sparse-checkout-cone-mode: false
2628
- name: move_package_to_root
@@ -35,4 +37,6 @@ jobs:
3537
run: npm run build
3638
- uses: JasonEtco/build-and-tag-action@dd5e4991048c325f6d85b4155e586fc211c644da
3739
env:
38-
GITHUB_TOKEN: ${{ github.token }}
40+
GITHUB_TOKEN: ${{ secrets.FLUTTERGITHUBBOT_TOKEN }}
41+
with:
42+
tag_name: 'no-response-v0.5.1'

0 commit comments

Comments
 (0)