Skip to content

Commit dfc44ce

Browse files
committed
Lint workflows as well.
1 parent 6229fc8 commit dfc44ce

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/list-changed-files.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,16 @@ jobs:
6262
- name: Generate file list
6363
env:
6464
PATTERN: ${{ matrix.pattern }}
65+
DESCRIPTION: ${{ matrix.description }}
6566
NEW_TAG: ${{ matrix.new_tag }}
6667
OLD_TAG: ${{ matrix.old_tag }}
67-
run: echo "$(git diff --name-status $OLD_TAG...$NEW_TAG | grep -E '^($PATTERN)' | cut -c3-)" >> $GITHUB_STEP_SUMMARY
68+
run: |
69+
DIFF_OUTPUT=$(git diff --name-status $OLD_TAG...$NEW_TAG | grep -E "^($PATTERN)" | cut -c3-)
70+
if [ -n "$DIFF_OUTPUT" ]; then
71+
echo "$DIFF_OUTPUT" >> $GITHUB_STEP_SUMMARY
72+
else
73+
echo "No files $DESCRIPTION found" >> $GITHUB_STEP_SUMMARY
74+
fi
6875
6976
slack-notifications:
7077
name: Slack Notifications

.github/workflows/workflow-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- trunk
7+
- 'add/changed-files-on-tag'
78
- '6.[8-9]'
89
- '[7-9].[0-9]'
910
paths:

0 commit comments

Comments
 (0)