Skip to content

Commit

Permalink
Add permission, stuff jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
yeslee-v authored Jan 15, 2024
1 parent a7e40dd commit 7da49ef
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
name: Add issue

on:
issues:
types:
- opened

name: Add labels when create issue

permissions:
contents: read
issues: write

jobs:
stuff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

project_issue:
runs-on: ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: |
gh issue edit $ISSUE_URL --add-label "2024"
- env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: |
gh issue edit $ISSUE_URL --add-assignee "yeslee-v"
gh issue edit $ISSUE_URL --add-label "2024" --add-assignee "yeslee-v"

0 comments on commit 7da49ef

Please sign in to comment.