libsignal/.github/workflows/release_notes.yml
Jordan Rose f2142df7c0 GitHub: consistent workflow names
- "Integration - *" for jobs we run by hand (Android integration and
  Slow Tests)
- "Release - *" for the release jobs specifically
- "[CI] *" for the jobs that run automatically on PRs and merges
- "[auto] *" for other jobs that run automatically

The reason for the two kinds of prefix is to make the automatic jobs
show up lower in GitHub's list of workflows, since we now have so many
the list gets truncated by default.
2025-12-17 16:18:57 -08:00

33 lines
1.0 KiB
YAML

name: "[CI] Check release notes"
# This is in a separate job because it only runs on pull requests and triggers
# on label changes in addition to code changes.
on:
pull_request:
types: [opened, reopened, synchronize, labeled, unlabeled, converted_to_draft, ready_for_review]
# all target branches
env:
LABEL_NAME: no release notes
jobs:
check:
name: Check for release notes
# Don't check draft PRs
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
# Needed to read the list of files modified by the pull request.
pull-requests: read
steps:
- name: Check for release notes change
uses: brettcannon/check-for-changed-files@871d7b8b5917a4f6f06662e2262e8ffc51dff6d1 # v1.2.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
skip-label: ${{ env.LABEL_NAME }}
file-pattern: |
RELEASE_NOTES.md
failure-message: "RELEASE_NOTES.md is unchanged. If that's intentional, set the '${{ env.LABEL_NAME }}' tag"