mirror of
https://github.com/expo/eas-cli.git
synced 2026-11-17 21:31:03 -10:00
<!-- If this PR requires a changelog entry, add it by commenting the PR with the command `/changelog-entry [breaking-change|new-feature|bug-fix|chore] [message]`. --> <!-- You can skip the changelog check by labeling the PR with "no changelog". --> # Why I've noticed tests ran for an old commit even though I pushed a new one. # How Added `concurrency` where I thought it was applicable. # Test Plan None.
42 lines
1.8 KiB
YAML
42 lines
1.8 KiB
YAML
name: CHANGELOG.md PR check
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- labeled
|
|
- unlabeled
|
|
|
|
concurrency:
|
|
group: changelog-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
pr-changelog-entry:
|
|
name: Check CHANGELOG.md updated
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Check if CHANGELOG.md was updated
|
|
id: changelog-updated
|
|
uses: tj-actions/changed-files@v41
|
|
with:
|
|
files: CHANGELOG.md
|
|
- name: Fail if CHANGELOG.md was not updated and the "no changelog" label is absent
|
|
if: steps.changelog-updated.outputs.any_changed == 'false' && !contains(github.event.pull_request.labels.*.name, 'no changelog')
|
|
uses: actions/github-script@v6
|
|
with:
|
|
script: |
|
|
core.setFailed('Please add a changelog entry!')
|
|
- uses: mshick/[email protected]
|
|
if: always()
|
|
with:
|
|
message-id: changelog-entry-check
|
|
refresh-message-position: true
|
|
message: ${{ contains(github.event.pull_request.labels.*.name, 'no changelog') && '⏩ The changelog entry check has been skipped since the "no changelog" label is present.' || '✅ Thank you for adding the changelog entry!' }}
|
|
message-failure: |
|
|
❌ It looks like a changelog entry is missing for this PR. You have two options: you can add it manually, or you can use the changelog bot to do it for you.
|
|
🤖 To use the bot, simply comment on this PR with the command `/changelog-entry [breaking-change|new-feature|bug-fix|chore] [message]`.
|
|
⏩ If this PR doesn't require a changelog entry, such as if it's an internal change that doesn't affect the user experience, you can add the "no changelog" label to the PR.
|