mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* fix(ci): a release fails its checks when its notes miss a commit merged after the cut * fix(ci): shorten the release checks comment * fix(ci): find the last release by subject and say to link a deliberate omission
23 lines
1014 B
YAML
23 lines
1014 B
YAML
name: Release-only diff
|
|
description: >-
|
|
Says whether a pull request changes only package and plugin versions, release notes and the changelog, so heavy suites
|
|
can skip it. Main and the merge queue never skip. Needs a checkout with full history.
|
|
outputs:
|
|
release_only:
|
|
description: "'true' when a pull request changes only version bumps, release notes and the changelog entry. Always 'false' elsewhere."
|
|
value: ${{ github.event_name == 'pull_request' && steps.diff.outputs.release_only || 'false' }}
|
|
release_diff:
|
|
description: "'true' when the commit changes only a release's own files, in a pull request or the merge queue."
|
|
value: ${{ steps.diff.outputs.release_only }}
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- id: diff
|
|
shell: bash
|
|
run: |
|
|
if [ "${{ github.event_name }}" = pull_request ] || [ "${{ github.event_name }}" = merge_group ]; then
|
|
node scripts/ci/release-only-diff.mjs
|
|
else
|
|
echo "release_only=false" >> "$GITHUB_OUTPUT"
|
|
fi
|