Skip to content

Commit

Permalink
Update 99-add-issue-to-project.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Dec 11, 2024
1 parent b69413e commit d074e9e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/99-add-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up GitHub CLI
run: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 && sudo apt-add-repository https://cli.github.com/packages && sudo apt-get update && sudo apt-get install gh -y
- name: Authenticate GitHub CLI
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
- name: Add issue to project
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECT_ID: ${{ secrets.DEV_PROJECT_ID }} # Set this in your repository secrets
run: |
issue_number=${{ github.event.issue.number }}
issue_node_id=$(gh api graphql -F owner='${{ github.repository_owner }}' -F name='${{ github.event.repository.name }}' -F issueNumber=${issue_number} -f query='
issue_node_id=$(gh api graphql -F owner='${{ github.repository_owner }}' -F name='${{ github.event.repository.name }}' -F issueNumber="$issue_number" -f query='
query ($owner: String!, $name: String!, $issueNumber: Int!) {
repository(owner: $owner, name: $name) {
issue(number: $issueNumber) {
Expand Down

0 comments on commit d074e9e

Please sign in to comment.