Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release workflow yaml #2486

Merged
merged 4 commits into from
Oct 10, 2023
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
27 changes: 18 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ jobs:
with:
app_id: ${{env.APP_ID}}
private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
repositories: [ ${{ github.repository }} ]
repositories:
- ${{ github.repository }}
permissions: >-
{"contents": "write"}
- name: Set VERSION variable from tag
Expand Down Expand Up @@ -120,7 +121,8 @@ jobs:
with:
app_id: ${{env.APP_ID}}
private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
repositories: [ ${{ github.repository }} ]
repositories:
- ${{ github.repository }}
permissions: >-
{"contents": "write", "pull_requests": "write"}
- name: Checkout repository code
Expand Down Expand Up @@ -169,7 +171,8 @@ jobs:
with:
app_id: ${{env.APP_ID}}
private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
repositories: [ ${{ github.repository }} ]
repositories:
- ${{ github.repository }}
permissions: >-
{"contents": "write", "pull_requests": "write"}
- name: Checkout repository code
Expand Down Expand Up @@ -212,7 +215,8 @@ jobs:
with:
app_id: ${{secrets.BUF_MAVEN_PUBLISH_APP_ID}}
private_key: ${{ secrets.BUF_MAVEN_PUBLISH_APP_PRIVATE_KEY }}
repositories: [ "bufbuild/buf-maven-publish" ]
repositories:
- "bufbuild/buf-maven-publish"
permissions: >-
{"actions": "write"}
- name: trigger maven update
Expand All @@ -239,7 +243,8 @@ jobs:
with:
app_id: ${{secrets.BUF_NPM_PUBLISH_RELEASE_APP_ID}}
private_key: ${{ secrets.BUF_NPM_PUBLISH_RELEASE_APP_PRIVATE_KEY }}
repositories: [ "bufbuild/buf-npm-publish" ]
repositories:
- "bufbuild/buf-npm-publish"
permissions: >-
{"actions": "write"}
- name: trigger npm publish
Expand All @@ -266,7 +271,8 @@ jobs:
with:
app_id: ${{secrets.HOMEBREW_RELEASE_APP_ID}}
private_key: ${{ secrets.HOMEBREW_RELEASE_APP_PRIVATE_KEY }}
repositories: [ "bufbuild/homebrew-buf" ]
repositories:
- "bufbuild/homebrew-buf"
permissions: >-
{"actions": "write"}
- name: trigger homebrew-buf release
Expand All @@ -293,7 +299,8 @@ jobs:
with:
app_id: ${{secrets.VIM_BUF_RELEASE_APP_ID}}
private_key: ${{ secrets.VIM_BUF_RELEASE_APP_PRIVATE_KEY }}
repositories: [ "bufbuild/vim-buf" ]
repositories:
- "bufbuild/vim-buf"
permissions: >-
{"actions": "write"}
- name: trigger vim-buf release
Expand All @@ -320,7 +327,8 @@ jobs:
with:
app_id: ${{secrets.BUF_BUILD_RELEASE_APP_ID}}
private_key: ${{ secrets.BUF_BUILD_RELEASE_APP_PRIVATE_KEY }}
repositories: [ "bufbuild/buf.build" ]
repositories:
- "bufbuild/buf.build"
permissions: >-
{"actions": "write"}
- name: trigger buf.build release
Expand All @@ -347,7 +355,8 @@ jobs:
with:
app_id: ${{secrets.BUF_SETUP_ACTION_RELEASE_APP_ID}}
private_key: ${{ secrets.BUF_SETUP_ACTION_RELEASE_APP_PRIVATE_KEY }}
repositories: [ "bufbuild/buf-setup-action" ]
repositories:
- "bufbuild/buf-setup-action"
permissions: >-
{"actions": "write"}
- name: trigger buf-setup-action release
Expand Down