Skip to content

Commit

Permalink
replace action to add labels
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy committed Oct 30, 2023
1 parent d67996b commit c4ac095
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/check_cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,16 @@ jobs:
— The DFINITY Foundation"

- name: Add Label
uses: actions-ecosystem/action-add-labels@v1
uses: actions/github-script@v6
if: ${{ steps.accepts_external_contrib.outputs.accepts_contrib != 'false' }}
with:
labels: external-contributor
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["external-contributor"]
})
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit c4ac095

Please sign in to comment.