Skip to content

ci: harden release summary #4

ci: harden release summary

ci: harden release summary #4

# Canonical release-please workflow for hawk-eco repos.
# Opens / updates a release PR on every push to main; on merge of that PR,
# tags the new release. The tag triggers goreleaser (separate workflow).
#
# Source of truth: .shared-templates/release-please.yml.tmpl at the eco root.
name: release-please
on:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
issues: write
concurrency:
group: release-please-${{ github.ref }}
cancel-in-progress: false
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Run release-please
id: release
uses: googleapis/release-please-action@v4
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }}
- name: Summary
if: always()
env:
RELEASE_CREATED: ${{ steps.release.outputs.release_created }}
TAG_NAME: ${{ steps.release.outputs.tag_name }}
run: |
if [[ "$RELEASE_CREATED" == "true" ]]; then
echo "Released $TAG_NAME." >> "$GITHUB_STEP_SUMMARY"
else
echo "Release-please completed." >> "$GITHUB_STEP_SUMMARY"
fi