Try to fix the workflow breaking when using PRs
Some checks failed
CI Pipeline / Check Templates (PR) (pull_request) Successful in 19s
CI Pipeline / Check Templates (All) (pull_request) Has been skipped
pre-commit / build (pull_request) Successful in 22s
CI Pipeline / Package and Sign Mod (pull_request) Has been skipped
CI Pipeline / Check Templates (PR) (push) Has been skipped
CI Pipeline / Check Templates (All) (push) Has been skipped
pre-commit / build (push) Successful in 25s
CI Pipeline / Package and Sign Mod (push) Failing after 26s
Some checks failed
CI Pipeline / Check Templates (PR) (pull_request) Successful in 19s
CI Pipeline / Check Templates (All) (pull_request) Has been skipped
pre-commit / build (pull_request) Successful in 22s
CI Pipeline / Package and Sign Mod (pull_request) Has been skipped
CI Pipeline / Check Templates (PR) (push) Has been skipped
CI Pipeline / Check Templates (All) (push) Has been skipped
pre-commit / build (push) Successful in 25s
CI Pipeline / Package and Sign Mod (push) Failing after 26s
This commit is contained in:
parent
4dbab357a0
commit
5feba3bd19
@ -18,6 +18,7 @@ jobs:
|
|||||||
- name: Get changed files
|
- name: Get changed files
|
||||||
id: files
|
id: files
|
||||||
run: |
|
run: |
|
||||||
|
git fetch origin ${{ github.event.pull_request.base.ref }}
|
||||||
files=$(git diff-tree --no-commit-id --name-only -r HEAD origin/${{ github.event.pull_request.base.ref }})
|
files=$(git diff-tree --no-commit-id --name-only -r HEAD origin/${{ github.event.pull_request.base.ref }})
|
||||||
files=$(echo "$files" | grep 'simulation/templates/' | grep '.xml' || true)
|
files=$(echo "$files" | grep 'simulation/templates/' | grep '.xml' || true)
|
||||||
files=$(echo "$files" | awk '{ gsub("community-mod/","", $0); print $0 }')
|
files=$(echo "$files" | awk '{ gsub("community-mod/","", $0); print $0 }')
|
||||||
|
Loading…
Reference in New Issue
Block a user