Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: abort requirements PR creation if already existing #63

Merged
merged 10 commits into from
Mar 7, 2024
Prev Previous commit
Next Next commit
FIX: allow multiple PR urls
redeboer committed Mar 7, 2024
commit 7f07e53c8dbb29308b94ea988edaf398761f2077
9 changes: 7 additions & 2 deletions .github/workflows/requirements.yml
Original file line number Diff line number Diff line change
@@ -64,12 +64,17 @@ jobs:
- name: List open pull requests
id: list-prs
run: |
echo "prs=$(
delimiter="$(openssl rand -hex 8)"
echo "prs<<${delimiter}" >> $GITHUB_OUTPUT
for pr in $(
gh pr list \
--json title,url \
--jq '.[] | select(.title == "${{ env.COMMIT_TITLE }}") | .url' \
--state open
)" | tee -a "$GITHUB_OUTPUT"
); do
echo "$pr" | tee -a $GITHUB_OUTPUT
done
echo "${delimiter}" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ github.token }}
- name: Check if constraints PR exists