Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/changelog-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
- unlabeled
# Trigger if target branch was changed to a trunk
pull_request_target:
types:
Expand Down Expand Up @@ -55,12 +57,27 @@ jobs:
token: ${{ secrets.TJC_TOKEN || secrets.GITHUB_TOKEN }}

# Check for Changes in Changelog
# Or skip if there is no major, minor, or patch label
- name: Check for Changes to Changelog
id: getChanges
uses: tj-actions/changed-files@v45.0.3
if: |
contains(github.event.label.name, 'major') ||
contains(github.event.label.name, 'minor') ||
contains(github.event.label.name, 'patch')
uses: tj-actions/changed-files@v45.0.4
with:
files: CHANGELOG.md

# Report Skipped
- name: Skipped - Version Not Changed
if: |
!contains(github.event.label.name, 'major') &&
!contains(github.event.label.name, 'minor') &&
!contains(github.event.label.name, 'patch')
uses: ./.github/actions/tools/annotation/notice
with:
message: "[Skipped] Version Not Changed"

# Report Success
- name: Success - Changelog Changed
if: steps.getChanges.outputs.any_modified == 'true'
Expand All @@ -70,7 +87,7 @@ jobs:

# Report Failure
- name: Failure - Changelog Not Changed
if: steps.getChanges.outputs.any_modified != 'true'
if: steps.getChanges.outputs.any_modified == 'false'
uses: ./.github/actions/tools/exit-code
with:
code: 5
Expand Down
Loading