Skip to content

Commit

Permalink
ci: switch to PAT for release-please
Browse files Browse the repository at this point in the history
- Remove cron job
- Use personal access token instead of GITHUB_TOKEN
- Specifiy config and manifest files
  • Loading branch information
pythoninthegrass committed Feb 19, 2024
1 parent d5f1763 commit a4f45bf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- 'main'
schedule:
- cron: '0 0 * * *'

permissions:
contents: write
Expand All @@ -19,5 +17,9 @@ jobs:
- name: Release with release-please
uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
# PAT with write access to the repository
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
# optional. customize path to release-please-config.json
config-file: release-please-config.json
# optional. customize path to .release-please-manifest.json
manifest-file: .release-please-manifest.json

0 comments on commit a4f45bf

Please sign in to comment.