fix: use ACTIONS_WRITE_TOKEN in attributions workflow #79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add team label to PR when it is opened | |
on: | |
pull_request: | |
types: | |
- opened | |
jobs: | |
add-team-label: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- run: corepack enable | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # This is needed to checkout all branches | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: yarn | |
- name: Install dependencies | |
run: yarn --immutable | |
- name: Add team label to PR | |
id: add-team-label-to-pr | |
env: | |
RELEASE_LABEL_TOKEN: ${{ secrets.RELEASE_LABEL_TOKEN }} | |
run: yarn run add-team-label-to-pr |