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 494affa commit e84e5f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ 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 && secrets.RWT_BOT_PAT || github.token }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node_version: [14, 16]
steps:
- uses: actions/checkout@v2
env:
TOKEN: "${{ github.event_name == 'push' && endsWith(github.ref, 'develop') && matrix.node_version == 16 && secrets.RWT_BOT_PAT || github.token }}"
with:
token: ${{ env.TOKEN }}
- uses: actions/setup-node@v2
Expand Down

0 comments on commit e84e5f5

Please sign in to comment.