Skip to content

Commit

Permalink
[release-2.6] chore: upgrade paths-filter (#4442)
Browse files Browse the repository at this point in the history
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Co-authored-by: Yue Yang <g1enyy0ung@gmail.com>
  • Loading branch information
chaos-mesh-cherrypick-robot and g1eny0ung committed Jun 20, 2024
1 parent fc2b961 commit 97076cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow defines the go and ui related jobs.
#
# First, we use [dorny/paths-filter@v2](https://github.com/dorny/paths-filter) to
# First, we use [dorny/paths-filter@v3](https://github.com/dorny/paths-filter) to
# detect changes in go and ui related files, and then run the corresponding sub-jobs
# based on the changes.
#
Expand Down Expand Up @@ -30,7 +30,7 @@ jobs:
ui: ${{ steps.filter.outputs.ui }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
go: ${{ steps.filter.outputs.go }}
ui: ${{ steps.filter.outputs.ui }}
steps:
- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/must_update_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,19 @@ jobs:
LABEL_EXISTS: ${{ contains(github.event.pull_request.labels.*.name, 'no-need-update-changelog') }}
steps:
- name: "Skip if label exists"
id: "skip-if-label-exists"
if: env.LABEL_EXISTS == 'true'
run: |
if [ "${LABEL_EXISTS}" = "true" ] ; then
echo "no-need-update-changelog exists, skipping this check"
exit 0
fi
echo "no-need-update-changelog exists, skipping this check"
- name: "Collect changes"
id: "collect-changes"
if: ${{ ! fromJSON(env.LABEL_EXISTS) }}
uses: dorny/paths-filter@v2
if: env.LABEL_EXISTS != 'true'
uses: dorny/paths-filter@v3
with:
filters: |
changelog:
- CHANGELOG.md
- name: "Make sure CHANGELOG.md is updated"
id: "check-changelog"
if: ${{ ! fromJSON(env.LABEL_EXISTS) }}
if: env.LABEL_EXISTS != 'true'
env:
CHANGELOG_UPDATED: ${{ steps.collect-changes.outputs.changelog }}
run: |
Expand Down

0 comments on commit 97076cf

Please sign in to comment.