The default GITHUB_TOKEN from secrets is limited
to the repository that contains your workflow.
- name: Run JReleaser
uses: jreleaser/release-action@v2
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
If you’d rather have separate tokens for each additional repository and keep the original GITHUB_TOKEN intact then
you may apply the GH_PAT token as follows
- name: Run JReleaser
uses: jreleaser/release-action@v2
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JRELEASER_HOMEBREW_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
Additional environment variables may be needed depending on your specific setup, such as those needed for signing files
with GPG or announcing a release via Twitter. Review the docs at https://jreleaser.org to find more about these
variables and how to set them up.