From b69413eba1a1fc0baa71d5d4b8fd9cf17aa9ea0f Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Wed, 11 Dec 2024 07:00:00 +0100 Subject: [PATCH] Update 99-add-issue-to-project.yml --- .github/workflows/99-add-issue-to-project.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/99-add-issue-to-project.yml b/.github/workflows/99-add-issue-to-project.yml index 62d81d5..a2a3237 100644 --- a/.github/workflows/99-add-issue-to-project.yml +++ b/.github/workflows/99-add-issue-to-project.yml @@ -10,13 +10,17 @@ 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 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) {