From b60d0c3b2cd44fa9593a5f06a6a19dc9a88a72b3 Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Tue, 28 Jun 2022 21:21:12 +0900 Subject: [PATCH] test --- .github/workflows/add-to-project.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 5930603b9..3b8835eba 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -12,7 +12,6 @@ on: permissions: issues: write pull-requests: write - repository-projects: write jobs: debug: @@ -58,12 +57,12 @@ jobs: shell: bash -xe {0} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE: ${{ github.event.issue.node_id || false }} - PR: ${{ github.event.pull_request.node_id || false }} + ISSUE: ${{ github.event.issue.node_id }} + PR: ${{ github.event.pull_request.node_id }} PROJECT: "PRO_kwLOHRQYxM4A3d8I" steps: - run: | - if $ISSUE; then + if [ -n "$ISSUE" ]; then gh api graphql \ -F "target=$ISSUE" \ -F "projectId=$PROJECT" \