File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1212 steps :
1313 - name : Checkout PR
1414 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
15+ with :
16+ fetch-depth : ${{ github.event_name == 'pull_request' && 2 || 0 }}
17+
18+ - name : Get changed files
19+ id : changed-files
20+ run : |
21+ if ${{ github.event_name == 'pull_request' }}; then
22+ echo "changed_files=$(git diff --name-only --diff-filter=ACM -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
23+ else
24+ echo "changed_files=$(git diff --name-only --diff-filter=ACM ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
25+ fi
26+
1527 - name : Enable corepack to fix https://github.com/actions/setup-node/pull/901
1628 run : corepack enable pnpm
1729
3749 steps :
3850 - name : Checkout PR
3951 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
52+ with :
53+ fetch-depth : ${{ github.event_name == 'pull_request' && 2 || 0 }}
54+
55+ - name : Get changed files
56+ id : changed-files
57+ run : |
58+ if ${{ github.event_name == 'pull_request' }}; then
59+ echo "changed_files=$(git diff --name-only --diff-filter=ACM -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
60+ else
61+ echo "changed_files=$(git diff --name-only --diff-filter=ACM ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
62+ fi
63+
4064 - name : Enable corepack to fix https://github.com/actions/setup-node/pull/901
4165 run : corepack enable pnpm
4266
You can’t perform that action at this time.
0 commit comments