We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05e07ac + bbcf258 commit 3b4fdacCopy full SHA for 3b4fdac
.github/workflows/label-issue.yml
@@ -6,11 +6,14 @@ on:
6
jobs:
7
label:
8
name: Label issue
9
- runs-on: ubuntu-latest
10
- if: github.event.action == 'opened'
+ runs-on: ubuntu-slim
+ permissions:
11
+ issues: write
12
steps:
13
- name: Label issue
14
+ run: gh issue edit "$NUMBER" --add-label "$LABELS"
15
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
16
- echo '{"labels": ["CLI"]}' | gh api repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels --input -
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17
+ GH_REPO: ${{ github.repository }}
18
+ NUMBER: ${{ github.event.issue.number }}
19
+ LABELS: CLI
0 commit comments