From 25b04dd86b27793914b91e30e607a809b34eb2bb Mon Sep 17 00:00:00 2001 From: Ricardo Campos Date: Tue, 14 Apr 2026 22:20:38 +0200 Subject: [PATCH] fix: gh cli wrong --commit argument --- .github/workflows/main-client.yml | 2 +- .github/workflows/main-server.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-client.yml b/.github/workflows/main-client.yml index db046ea..e6fd87d 100644 --- a/.github/workflows/main-client.yml +++ b/.github/workflows/main-client.yml @@ -58,7 +58,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - PR_NUMBER=$(gh pr list --commit ${{ github.sha }} --state merged --json number --jq '.[0].number') + PR_NUMBER=$(gh pr list --search "${{ github.sha }}" --state merged --json number --jq '.[0].number') if [ -z "$PR_NUMBER" ]; then echo "No merged PR found for this commit. Falling back to 'candidate' tag." PR_NUMBER="candidate" diff --git a/.github/workflows/main-server.yml b/.github/workflows/main-server.yml index 0d7514b..0eea831 100644 --- a/.github/workflows/main-server.yml +++ b/.github/workflows/main-server.yml @@ -77,7 +77,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - PR_NUMBER=$(gh pr list --commit ${{ github.sha }} --state merged --json number --jq '.[0].number') + PR_NUMBER=$(gh pr list --search "${{ github.sha }}" --state merged --json number --jq '.[0].number') if [ -z "$PR_NUMBER" ]; then echo "No merged PR found for this commit. Falling back to 'candidate' tag." PR_NUMBER="candidate"