We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8854c3 commit d7128a1Copy full SHA for d7128a1
.github/workflows/codeql-analysis.yml
@@ -29,10 +29,31 @@ on:
29
- cron: '25 5 * * 5'
30
31
jobs:
32
+ changes:
33
+ runs-on: ubuntu-latest
34
+ outputs:
35
+ go: ${{ steps.filter.outputs.go }}
36
+ steps:
37
+ - name: Checkout
38
+ uses: actions/checkout@v2
39
+ with:
40
+ submodules: recursive
41
+
42
+ - uses: ./.github/actions/paths-filter
43
+ id: filter
44
45
+ token: ${{ secrets.GITHUB_TOKEN }}
46
+ filters: |
47
+ go:
48
+ - '*.go'
49
+ - '**/*.go'
50
analyze:
51
name: Analyze
52
runs-on: ubuntu-latest
53
54
+ needs: changes
55
+ if: |
56
+ (needs.changes.outputs.go == 'true')
57
strategy:
58
fail-fast: false
59
matrix:
0 commit comments