Skip to content

Commit 02cfa9e

Browse files
committed
Add optional planning-token to Add Team Label action
1 parent a8c583c commit 02cfa9e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/actions/add-team-label/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ inputs:
66
description: 'GitHub token with access to read topology.json and add labels to PRs.'
77
required: true
88

9+
planning-token:
10+
description: 'GitHub token with access to read topology.json. Optional if team-label-token already has this access.'
11+
required: false
12+
default: ${{ inputs.team-label-token }}
13+
914
runs:
1015
using: composite
1116
steps:
1217
# Fetch the team label for the PR author from topology.json and expose it as a step output.
1318
- name: Get team label
1419
id: get-team-label
1520
env:
16-
GH_TOKEN: ${{ inputs.team-label-token }}
21+
GH_TOKEN: ${{ inputs.planning-token }}
1722
USER: ${{ github.event.pull_request.user.login }}
1823
shell: bash
1924
run: |

0 commit comments

Comments
 (0)