Passing response appears to be fixed.

This commit is contained in:
2024-12-17 12:36:00 -05:00
parent 1f9ee7b47b
commit 634430a60b
+10 -12
View File
@@ -33,19 +33,17 @@ jobs:
cat pr_status.json cat pr_status.json
echo "pr_status=$(jq -c . pr_status.json)" >> "$GITHUB_OUTPUT" echo "pr_status=$(jq -c . pr_status.json)" >> "$GITHUB_OUTPUT"
- name: var test - name: Status check
run: | if: ${{ steps.check-pr.outputs.pr_status.state == 'closed' }}
echo "pr_status: ${{ steps.check-pr.outputs.pr_status }}" run: echo "PR is closed, creating a new one..."
- name: Get PR status
id: get-pr-status
# - name: Get PR status uses: yakubique/json-utils@v1.8
# id: get-pr-status with:
# uses: yakubique/json-utils@v1.8 input: '${{ toJSON(steps.check-pr.outputs.pr_status) }}'
# with: action: "get"
# input: '${{ toJSON(steps.check-pr.outputs.pr_status) }}' key: "state"
# action: "get"
# key: "state"
# Step 2: Create PR if none exists # Step 2: Create PR if none exists
# - name: Create PR in Gitea # - name: Create PR in Gitea
# if: steps.check-pr.outputs.pr_http_status.state == 'closed' # if: steps.check-pr.outputs.pr_http_status.state == 'closed'