We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a5baf commit fbdc657Copy full SHA for fbdc657
.github/workflows/pull_request.yaml
@@ -56,10 +56,16 @@ jobs:
56
- name: Checkout repository
57
uses: actions/checkout@v2
58
with:
59
- fetch-depth: 2
60
- - name: Get changed files
61
- id: changes
+ fetch-depth: 0
+ - name: Check Diff
+ uses: technote-space/get-diff-action@v6
62
+ with:
63
+ PATTERNS: |
64
+ +**/*.go
65
+ !**/*_test.go
66
+ FILES: |
67
+ go.mod
68
+ - name: Output Diff
69
+ if: env.GIT_DIFF
70
run: |
- echo "::set-output name=changes::$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep 'go.mod\|.go$' | grep -v _test.go$ | xargs)"
- echo ${{ steps.changes.outputs.changes}}
-
71
+ echo ${{ env.GIT_DIFF }}
0 commit comments