Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarlin-zama committed Jul 22, 2024
1 parent e1f1305 commit 4684032
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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}"
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 4684032

Please sign in to comment.