Skip to content

fix: use ACTIONS_WRITE_TOKEN in attributions workflow #79

fix: use ACTIONS_WRITE_TOKEN in attributions workflow

fix: use ACTIONS_WRITE_TOKEN in attributions workflow #79

Workflow file for this run

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