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 aa99124 commit 9ef290b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Close Pull Request
name: Close or Merge corresponding PR on the data repo

env:
TARGET_REPO: nsarlin-zama/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 @@ -25,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 @@ -74,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 9ef290b

Please sign in to comment.