Forgejo Actions #5

Merged
pazpi merged 14 commits from forgejo-actions into master 2025-12-07 23:24:30 +01:00
Showing only changes of commit 28e9ef6a2c - Show all commits

View file

@ -177,7 +177,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:** \`${{ steps.branch.outputs.branch_name }}\`\n**Run:** ${{ forge.server_url }}/${{ forge.repository }}/actions/runs/${{ forge.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:** \`${{ steps.branch.outputs.branch_name }}\`\n**Run:** ${{ forge.server_url }}/${{ forge.repository }}/actions/runs/${{ forge.run_number }}\n\n**Failed hosts:**$FAILED_HOSTS\n$FAILURE_DETAILS\n\nGenerated on: $(date -Iseconds)"
curl -X POST \
-H "Authorization: token $FORGEJO_TOKEN" \
@ -186,7 +186,7 @@ jobs:
\"title\": \"Build failure: weekly flake update $(date +%Y-%m-%d)\",
\"body\": \"$ISSUE_BODY\"
}" \
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/issues"
"${{ forge.server_url }}/api/v1/repos/${{ forge.repository }}/issues"
- name: Cleanup
if: always()