Adding some extra logic.

This commit is contained in:
2024-12-19 12:50:13 -05:00
parent 54f301b45e
commit 8eae15b40f
@@ -27,10 +27,9 @@ jobs:
-H 'Accept: application/json' \
-H 'Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}' \
-s | jq '{index: .number, state: .state}' > pr_status.json
cat pr_status.json
if [ $(jq -r .index pr_status.json) != "null" ]; then
echo "pr_status=$(jq -r .index pr_status.json)" >> "$GITHUB_OUTPUT"
else
exit 1
- name: Create PR in Gitea
if: ${{ steps.check-pr.outputs.pr_status.state }} == 'closed'