Bump docker/build-push-action from 6.0.0 to 6.1.0 #145
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "code quality" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
code-ql: | |
name: analyze | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["python"] | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- 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 | |
format: | |
name: format | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: sort python imports with isort | |
uses: olance/isort-action@v1.1.0 | |
with: | |
args: . | |
- name: commit changes | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add -A && git diff-index --cached --quiet HEAD || git commit -m 'automatic import sort' | |
- name: push changes | |
uses: ad-m/github-push-action@v0.8.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |