Avoid using MATZBOT_GITHUB_TOKEN for pull requests

This commit is contained in:
Takashi Kokubun 2023-10-13 20:53:23 -07:00
parent b28c1d2c56
commit 16d14f425f

View File

@ -18,7 +18,7 @@ jobs:
steps: steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with: with:
token: ${{ secrets.MATZBOT_GITHUB_TOKEN }} token: ${{ (github.repository == 'ruby/ruby' && !startsWith(github.event_name, 'pull')) && secrets.MATZBOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
- uses: ./.github/actions/setup/directories - uses: ./.github/actions/setup/directories
with: with: