✨ 更新内容 #43
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 Optimize Qodana | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
push: | |
tags: # 当生成指定标签时触发 | |
- '*.*.*' | |
branches: # Specify your branches here | |
- main | |
- '1.*' | |
jobs: | |
qodana: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
checks: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} # 检查实际的pull请求提交,而不是合并提交 | |
fetch-depth: 0 # 拉请求分析需要完整的历史记录 | |
- name: 🧬 Qodana Scan | |
uses: JetBrains/[email protected] | |
with: | |
pr-mode: false | |
args: --property=qodana.net.solution=ALL.sln | |
env: | |
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} |