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 114fb31 commit 494affa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
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' }}"
TOKEN: "${{ github.event_name == 'push' && endsWith(github.ref, 'develop') && matrix.node_version == 16 && secrets.RWT_BOT_PAT || github.token }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down

0 comments on commit 494affa

Please sign in to comment.