Skip to content

Commit

Permalink
fix: authorize for release action (#47)
Browse files Browse the repository at this point in the history
### Summary

fix permission check for release action

### Checklist

* [x]Does your PR title have the correct [title format](https://github.com/amplitude/Amplitude-Kotlin/blob/main/CONTRIBUTING.md#pr-commit-title-conventions)?
* Does your PR have a breaking change?: no
  • Loading branch information
bohan-amplitude authored Jul 22, 2022
1 parent 802f9dc commit 5c44d34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -14,10 +14,9 @@ jobs:
runs-on: ubuntu-18.04
steps:
- name: ${{ github.actor }} permission check to do a release
uses: octokit/request-action@v2.0.0
uses: "lannonbr/repo-permission-check-action@2.0.2"
with:
route: GET /repos/:repository/collaborators/${{ github.actor }}
repository: ${{ github.repository }}
permission: "write"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5c44d34

Please sign in to comment.