Skip to content

Commit

Permalink
New Issue Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Nov 12, 2024
1 parent bb8cca7 commit a8b4bea
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/new-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ jobs:
permissions:
issues: write
steps:
- name: Create label (not beta version)
id: create_label_version
run: gh label create not-latest-version --description "Beta version not found in issue" --color B02727 --force
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}

- name: Setup node
id: setup_node
uses: actions/setup-node@v4
Expand Down Expand Up @@ -60,9 +68,8 @@ jobs:
- name: Add label (not beta version)
id: add_label_version
if: ${{ !contains(github.event.issue.body, steps.get_npm_version.outputs.LATEST_VERSION) }}
run: gh issue edit "$NUMBER" --add-label "$LABELS"
run: gh issue edit "$NUMBER" --add-label not-latest-version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: not-latest-version

0 comments on commit a8b4bea

Please sign in to comment.