Skip to content

Commit

Permalink
(actions) only use PAT when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh authored Jun 20, 2021
1 parent a3a7c34 commit 114fb31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
ci:
name: ${{ matrix.node_version }}
if: ${{ github.actor != 'RWT-bot' }}
env:
TOKEN: "${{ github.event_name == 'push' && endsWith(github.ref, 'develop') && matrix.node_version == 16 && 'RWT_BOT_PAT' || 'GITHUB_TOKEN' }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -18,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.RWT_BOT_PAT }}
token: ${{ env.TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
Expand Down

0 comments on commit 114fb31

Please sign in to comment.