Skip to content

Optimize detection what has changes. (#41) #232

Optimize detection what has changes. (#41)

Optimize detection what has changes. (#41) #232

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 18 * * 0'
jobs:
files-changed:
name: Detect file changes
runs-on: ubuntu-latest
outputs:
go: ${{ steps.changes.outputs.go }}
docs: ${{ steps.changes.outputs.docs }}
any: ${{ steps.changes.outputs.any }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check for backend file changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: .github/filters.yml
analyze:
name: Analyze
runs-on: ubuntu-latest
needs: [ files-changed ]
if: needs.files-changed.outputs.go == 'true'
strategy:
fail-fast: false
matrix:
language: ['go']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3