.github/workflows/update-release.yaml
This workflow updates a release with deployment information when a version tag is pushed. It appends deployment details including the timestamp and a link to the action run to the release notes.
name: Deploy and Update Release
# ... triggers ...
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
# ... deployment steps ...
update-release:
name: Update Release
needs: deploy
uses: significa/actions/.github/workflows/update-release.yaml@main
with:
application_name: 'my-app to production'application_name(required): Application name and/or environment where the release was deployed (e.g.,my-app to production,frontend to staging)
contents: write- To update releases
When triggered on a version tag (e.g., v1.2.3), this workflow:
- Retrieves the release associated with the tag
- Appends deployment information to the release notes including:
- Timestamp (ISO 8601 format)
- Application name/environment
- Link to the workflow run
- Updates the release with the new notes
If the release is not found, the workflow logs a message and completes gracefully without failing.