From ae722d25fd1d434528393e8f8c5b642d01cfb786 Mon Sep 17 00:00:00 2001 From: ivvist Date: Wed, 29 Jan 2025 22:20:03 +0100 Subject: [PATCH] Test cherry-pick for bp3 modify --- .github/workflows/cp.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cp.yml b/.github/workflows/cp.yml index 1798ec2..130edf8 100644 --- a/.github/workflows/cp.yml +++ b/.github/workflows/cp.yml @@ -150,10 +150,17 @@ jobs: - name: Close issue run: | - issue_title=$(gh issue view ${{ inputs.issue }} --repo ${{ inputs.org }}/{{ inputs.repo }} --json title -q '.title') - if [[ "$issue_title" != "cprelease" || "${{ inputs.repo }}" != "airs-bp3" ]]; then + echo "DEBUG: inputs.issue=${{ inputs.issue }}" + echo "DEBUG: inputs.org=${{ inputs.org }}" + echo "DEBUG: inputs.repo=${{ inputs.repo }}" + + issue_title=$(gh issue view "$issue" --repo "$org/$repo" --json title -q '.title') + + echo "DEBUG: issue_title=$issue_title" + + if [[ "$issue_title" != "cprelease" || "$repo" != "airs-bp3" ]]; then curl -s https://raw.githubusercontent.com/untillpro/ci-action/master/scripts/close-issue.sh | bash - fi + fi env: GH_TOKEN: ${{ secrets.git_token }} org: ${{ inputs.org }}