File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v3
17
-
17
+ with :
18
+ fetch-depth : ${{ github.event_name == 'pull_request' && 2 || 0 }}
19
+ - name : Get changed files
20
+ id : changed-files
21
+ run : |
22
+ if ${{ github.event_name == 'pull_request' }}; then
23
+ echo "changed_files=$(git diff --name-only -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
24
+ else
25
+ echo "changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
26
+ fi
18
27
- name : Run tests
19
28
run : ./util/github-action-test.sh t
20
29
env :
21
30
TEST_IMAGE : docker.io/coke/rakudo-docs-test
22
- TEST_FILES : ${{ steps.changed-files.outputs.all_changed_files }}
31
+ TEST_FILES : ${{ steps.changed-files.outputs.changed_files }}
You can’t perform that action at this time.
0 commit comments