Skip to content

Commit

Permalink
Update qodana_code_quality.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet authored Aug 5, 2024
1 parent c2e96ea commit cd16b13
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,31 @@ name: Qodana
on:
workflow_dispatch:
pull_request:
branches-ignore:
- 'dependabot/**'
push:
branches:
- dev/main
- dev/master
- main
- master
- '!dependabot/**'

jobs:
qodana:
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: 'Qodana Scan'
uses: JetBrains/[email protected]
uses: JetBrains/qodana-action@main
with:
upload-result: true
github-token: ${{ secrets.FORLIY_ACCESS_TOKEN }}
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below
GITHUB_TOKEN: ${{ secrets.FORLIY_ACCESS_TOKEN }}

0 comments on commit cd16b13

Please sign in to comment.