From 468403226404dfe24183551f587ebc61b59165c4 Mon Sep 17 00:00:00 2001 From: Nicolas Sarlin Date: Mon, 22 Jul 2024 17:21:39 +0200 Subject: [PATCH] test --- .github/workflows/pr-close.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-close.yml b/.github/workflows/pr-close.yml index 855e079..fdbc9dc 100644 --- a/.github/workflows/pr-close.yml +++ b/.github/workflows/pr-close.yml @@ -1,9 +1,7 @@ name: Close or Merge corresponding PR on the data repo env: - TARGET_ORGA: nsarlin-zama - TARGET_REPO: ${TARGET_ORGA}/test-target-repo - TARGET_REPO_API_URL: ${{ github.api_url }}/repos/${TARGET_REPO} + TARGET_REPO_API_URL: ${{ github.api_url }}/repos/nsarlin-zama/test-target-repo # only trigger on pull request closed events on: @@ -26,7 +24,7 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ ${{ env.TARGET_REPO_API_URL }}/pulls \ - -d '{ "head": "nsarlin_zama:${{ env.PR_BRANCH }}", "state": "open" }' | jq -e '.[0]' + -d '{ "head": "${{ env.GITHUB_REPOSITORY_OWNER }}:${{ env.PR_BRANCH }}", "state": "open" }' | jq -e '.[0]' echo EOF } >> "${GITHUB_ENV}" @@ -75,7 +73,7 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ ${{ env.TARGET_REPO_API_URL }}/pulls \ - -d '{ "head": "nsarlin_zama:${{ env.PR_BRANCH }}", "state": "open" }' | jq -e '.[0]' + -d '{ "head": "${{ env.GITHUB_REPOSITORY_OWNER }}:${{ env.PR_BRANCH }}", "state": "open" }' | jq -e '.[0]' echo EOF } >> "${GITHUB_ENV}"