From af0439165a97f15fcb8dc0336b0f215305808b5a Mon Sep 17 00:00:00 2001 From: tanzhenxin Date: Fri, 22 Aug 2025 12:00:10 +0800 Subject: [PATCH] chore: fix action lint errors --- .github/workflows/build-and-publish-image.yml | 6 ++++-- .../gemini-automated-issue-triage.yml | 3 ++- .../gemini-scheduled-issue-triage.yml | 6 ++++-- .../workflows/gemini-scheduled-pr-triage.yml | 3 ++- .github/workflows/qwen-code-pr-review.yml | 6 ++++-- .github/workflows/release.yml | 18 ++++++++++++------ 6 files changed, 28 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-and-publish-image.yml b/.github/workflows/build-and-publish-image.yml index de189c83..7698c002 100644 --- a/.github/workflows/build-and-publish-image.yml +++ b/.github/workflows/build-and-publish-image.yml @@ -45,7 +45,8 @@ jobs: type=sha,prefix=sha-,format=short - name: 'Log in to the Container registry' - if: 'github.event_name != "pull_request" && (github.ref == "refs/heads/main" || startsWith(github.ref, "refs/tags/v"))' + if: |- + ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) }} uses: 'docker/login-action@v3' with: registry: '${{ env.REGISTRY }}' @@ -58,7 +59,8 @@ jobs: with: context: '.' platforms: 'linux/amd64,linux/arm64' - push: '${{ github.event_name != "pull_request" && (github.ref == "refs/heads/main" || startsWith(github.ref, "refs/tags/v") || github.event.inputs.publish == "true") }}' + push: |- + ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.event.inputs.publish == 'true') }} tags: '${{ steps.meta.outputs.tags }}' labels: '${{ steps.meta.outputs.labels }}' build-args: | diff --git a/.github/workflows/gemini-automated-issue-triage.yml b/.github/workflows/gemini-automated-issue-triage.yml index e68c72c9..a4c5e251 100644 --- a/.github/workflows/gemini-automated-issue-triage.yml +++ b/.github/workflows/gemini-automated-issue-triage.yml @@ -33,7 +33,8 @@ permissions: jobs: triage-issue: timeout-minutes: 5 - if: '${{ github.repository == "QwenLM/qwen-code" }}' + if: |- + ${{ github.repository == 'QwenLM/qwen-code' }} runs-on: 'ubuntu-latest' steps: - name: 'Run Qwen Issue Analysis' diff --git a/.github/workflows/gemini-scheduled-issue-triage.yml b/.github/workflows/gemini-scheduled-issue-triage.yml index ad01b71b..7711a329 100644 --- a/.github/workflows/gemini-scheduled-issue-triage.yml +++ b/.github/workflows/gemini-scheduled-issue-triage.yml @@ -23,7 +23,8 @@ permissions: jobs: triage-issues: timeout-minutes: 10 - if: '${{ github.repository == "QwenLM/qwen-code" }}' + if: |- + ${{ github.repository == 'QwenLM/qwen-code' }} runs-on: 'ubuntu-latest' permissions: contents: 'read' @@ -54,7 +55,8 @@ jobs: echo "issues_to_triage=${ISSUES}" >> "${GITHUB_OUTPUT}" - name: 'Run Qwen Issue Triage' - if: 'steps.find_issues.outputs.issues_to_triage != "[]"' + if: |- + ${{ steps.find_issues.outputs.issues_to_triage != '[]' }} uses: 'QwenLM/qwen-code-action@5fd6818d04d64e87d255ee4d5f77995e32fbf4c2' env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' diff --git a/.github/workflows/gemini-scheduled-pr-triage.yml b/.github/workflows/gemini-scheduled-pr-triage.yml index c601d64a..41c2d7cb 100644 --- a/.github/workflows/gemini-scheduled-pr-triage.yml +++ b/.github/workflows/gemini-scheduled-pr-triage.yml @@ -8,7 +8,8 @@ on: jobs: audit-prs: timeout-minutes: 15 - if: '${{ github.repository == "QwenLM/qwen-code" }}' + if: |- + ${{ github.repository == 'QwenLM/qwen-code' }} permissions: contents: 'read' id-token: 'write' diff --git a/.github/workflows/qwen-code-pr-review.yml b/.github/workflows/qwen-code-pr-review.yml index b3b048e6..527689a7 100644 --- a/.github/workflows/qwen-code-pr-review.yml +++ b/.github/workflows/qwen-code-pr-review.yml @@ -55,7 +55,8 @@ jobs: - name: 'Get PR details (pull_request_target & workflow_dispatch)' id: 'get_pr' - if: 'github.event_name == "pull_request_target" || github.event_name == "workflow_dispatch"' + if: |- + ${{ github.event_name == 'pull_request_target' || github.event_name == 'workflow_dispatch' }} env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' run: | @@ -76,7 +77,8 @@ jobs: - name: 'Get PR details (issue_comment)' id: 'get_pr_comment' - if: 'github.event_name == "issue_comment"' + if: |- + ${{ github.event_name == 'issue_comment' }} env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' COMMENT_BODY: '${{ github.event.comment.body }}' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b984332..cbe104e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,8 @@ jobs: environment: name: 'production-release' url: '${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ steps.version.outputs.RELEASE_TAG }}' - if: 'github.repository == "QwenLM/qwen-code"' + if: |- + ${{ github.repository == 'QwenLM/qwen-code' }} permissions: contents: 'write' packages: 'write' @@ -99,7 +100,8 @@ jobs: MANUAL_VERSION: '${{ inputs.version }}' - name: 'Run Tests' - if: 'github.event.inputs.force_skip_tests != "true"' + if: |- + ${{ github.event.inputs.force_skip_tests != 'true' }} run: | npm run preflight npm run test:integration:sandbox:none @@ -157,21 +159,25 @@ jobs: scope: '@qwen-code' - name: 'Publish @qwen-code/qwen-code-core' - run: 'npm publish --workspace=@qwen-code/qwen-code-core --access public --tag=${{ steps.version.outputs.NPM_TAG }} ${{ steps.vars.outputs.is_dry_run == "true" && "--dry-run" || "" }}' + run: |- + npm publish --workspace=@qwen-code/qwen-code-core --access public --tag=${{ steps.version.outputs.NPM_TAG }} ${{ steps.vars.outputs.is_dry_run == 'true' && '--dry-run' || '' }} env: NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}' - name: 'Install latest core package' - if: 'steps.vars.outputs.is_dry_run == "false"' + if: |- + ${{ steps.vars.outputs.is_dry_run == 'false' }} run: 'npm install @qwen-code/qwen-code-core@${{ steps.version.outputs.RELEASE_VERSION }} --workspace=@qwen-code/qwen-code --save-exact' - name: 'Publish @qwen-code/qwen-code' - run: 'npm publish --workspace=@qwen-code/qwen-code --access public --tag=${{ steps.version.outputs.NPM_TAG }} ${{ steps.vars.outputs.is_dry_run == "true" && "--dry-run" || "" }}' + run: |- + npm publish --workspace=@qwen-code/qwen-code --access public --tag=${{ steps.version.outputs.NPM_TAG }} ${{ steps.vars.outputs.is_dry_run == 'true' && '--dry-run' || '' }} env: NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}' - name: 'Create GitHub Release and Tag' - if: '${{ steps.vars.outputs.is_dry_run == "false" }}' + if: |- + ${{ steps.vars.outputs.is_dry_run == 'false' }} env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' RELEASE_BRANCH: '${{ steps.release_branch.outputs.BRANCH_NAME }}'