fix variable name

This commit is contained in:
pazpi 2026-01-08 08:35:05 +01:00
parent 457c45e81e
commit 13b2aa300c

View file

@ -201,7 +201,7 @@ jobs:
"head": "'"${{ needs.prepare.outputs.branch_name }}"'", "head": "'"${{ needs.prepare.outputs.branch_name }}"'",
"base": "master" "base": "master"
}' \ }' \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/pulls" "${{ forgejo.api_url }}/repos/${{ forgejo.repository }}/pulls"
- name: Create Issue on failure - name: Create Issue on failure
if: needs.build.result == 'failure' if: needs.build.result == 'failure'
@ -228,7 +228,7 @@ jobs:
FAILED_HOSTS="\n- (Unable to determine failed hosts - check workflow logs)" FAILED_HOSTS="\n- (Unable to determine failed hosts - check workflow logs)"
fi fi
ISSUE_BODY="Weekly flake update failed to build some hosts.\n\n**Branch:** \`${{ needs.prepare.outputs.branch_name }}\`\n**Run:** ${{ forge.api_url }}/${{ api_url.repository }}/actions/runs/${{ api_url.run_id }}\n\n**Failed hosts:**$FAILED_HOSTS\n$FAILURE_DETAILS\n\nGenerated on: $(date -Iseconds)" ISSUE_BODY="Weekly flake update failed to build some hosts.\n\n**Branch:** \`${{ needs.prepare.outputs.branch_name }}\`\n**Run:** ${{ forgejo.api_url }}/${{ forgejo.repository }}/actions/runs/${{ forgejo.run_id }}\n\n**Failed hosts:**$FAILED_HOSTS\n$FAILURE_DETAILS\n\nGenerated on: $(date -Iseconds)"
curl -X POST \ curl -X POST \
-H "Authorization: token $FORGEJO_TOKEN" \ -H "Authorization: token $FORGEJO_TOKEN" \
@ -237,7 +237,7 @@ jobs:
\"title\": \"Build failure: weekly flake update $(date +%Y-%m-%d)\", \"title\": \"Build failure: weekly flake update $(date +%Y-%m-%d)\",
\"body\": \"$ISSUE_BODY\" \"body\": \"$ISSUE_BODY\"
}" \ }" \
"${{ api_url.server_url }}/api/v1/repos/${{ api_url.repository }}/issues" "${{ forgejo.api_url }}/repos/${{ forgejo.repository }}/issues"
- name: Cleanup - name: Cleanup
if: always() if: always()