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 }}"'",
"base": "master"
}' \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/pulls"
"${{ forgejo.api_url }}/repos/${{ forgejo.repository }}/pulls"
- name: Create Issue on failure
if: needs.build.result == 'failure'
@ -228,7 +228,7 @@ jobs:
FAILED_HOSTS="\n- (Unable to determine failed hosts - check workflow logs)"
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 \
-H "Authorization: token $FORGEJO_TOKEN" \
@ -237,7 +237,7 @@ jobs:
\"title\": \"Build failure: weekly flake update $(date +%Y-%m-%d)\",
\"body\": \"$ISSUE_BODY\"
}" \
"${{ api_url.server_url }}/api/v1/repos/${{ api_url.repository }}/issues"
"${{ forgejo.api_url }}/repos/${{ forgejo.repository }}/issues"
- name: Cleanup
if: always()