mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
chore: fix action lint errors
This commit is contained in:
@@ -45,7 +45,8 @@ jobs:
|
|||||||
type=sha,prefix=sha-,format=short
|
type=sha,prefix=sha-,format=short
|
||||||
|
|
||||||
- name: 'Log in to the Container registry'
|
- 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'
|
uses: 'docker/login-action@v3'
|
||||||
with:
|
with:
|
||||||
registry: '${{ env.REGISTRY }}'
|
registry: '${{ env.REGISTRY }}'
|
||||||
@@ -58,7 +59,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: '.'
|
context: '.'
|
||||||
platforms: 'linux/amd64,linux/arm64'
|
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 }}'
|
tags: '${{ steps.meta.outputs.tags }}'
|
||||||
labels: '${{ steps.meta.outputs.labels }}'
|
labels: '${{ steps.meta.outputs.labels }}'
|
||||||
build-args: |
|
build-args: |
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
triage-issue:
|
triage-issue:
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
if: '${{ github.repository == "QwenLM/qwen-code" }}'
|
if: |-
|
||||||
|
${{ github.repository == 'QwenLM/qwen-code' }}
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
- name: 'Run Qwen Issue Analysis'
|
- name: 'Run Qwen Issue Analysis'
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
triage-issues:
|
triage-issues:
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
if: '${{ github.repository == "QwenLM/qwen-code" }}'
|
if: |-
|
||||||
|
${{ github.repository == 'QwenLM/qwen-code' }}
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
permissions:
|
permissions:
|
||||||
contents: 'read'
|
contents: 'read'
|
||||||
@@ -54,7 +55,8 @@ jobs:
|
|||||||
echo "issues_to_triage=${ISSUES}" >> "${GITHUB_OUTPUT}"
|
echo "issues_to_triage=${ISSUES}" >> "${GITHUB_OUTPUT}"
|
||||||
|
|
||||||
- name: 'Run Qwen Issue Triage'
|
- 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'
|
uses: 'QwenLM/qwen-code-action@5fd6818d04d64e87d255ee4d5f77995e32fbf4c2'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
audit-prs:
|
audit-prs:
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
if: '${{ github.repository == "QwenLM/qwen-code" }}'
|
if: |-
|
||||||
|
${{ github.repository == 'QwenLM/qwen-code' }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: 'read'
|
contents: 'read'
|
||||||
id-token: 'write'
|
id-token: 'write'
|
||||||
|
|||||||
6
.github/workflows/qwen-code-pr-review.yml
vendored
6
.github/workflows/qwen-code-pr-review.yml
vendored
@@ -55,7 +55,8 @@ jobs:
|
|||||||
|
|
||||||
- name: 'Get PR details (pull_request_target & workflow_dispatch)'
|
- name: 'Get PR details (pull_request_target & workflow_dispatch)'
|
||||||
id: 'get_pr'
|
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:
|
env:
|
||||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
run: |
|
run: |
|
||||||
@@ -76,7 +77,8 @@ jobs:
|
|||||||
|
|
||||||
- name: 'Get PR details (issue_comment)'
|
- name: 'Get PR details (issue_comment)'
|
||||||
id: 'get_pr_comment'
|
id: 'get_pr_comment'
|
||||||
if: 'github.event_name == "issue_comment"'
|
if: |-
|
||||||
|
${{ github.event_name == 'issue_comment' }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
COMMENT_BODY: '${{ github.event.comment.body }}'
|
COMMENT_BODY: '${{ github.event.comment.body }}'
|
||||||
|
|||||||
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -37,7 +37,8 @@ jobs:
|
|||||||
environment:
|
environment:
|
||||||
name: 'production-release'
|
name: 'production-release'
|
||||||
url: '${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ steps.version.outputs.RELEASE_TAG }}'
|
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:
|
permissions:
|
||||||
contents: 'write'
|
contents: 'write'
|
||||||
packages: 'write'
|
packages: 'write'
|
||||||
@@ -99,7 +100,8 @@ jobs:
|
|||||||
MANUAL_VERSION: '${{ inputs.version }}'
|
MANUAL_VERSION: '${{ inputs.version }}'
|
||||||
|
|
||||||
- name: 'Run Tests'
|
- name: 'Run Tests'
|
||||||
if: 'github.event.inputs.force_skip_tests != "true"'
|
if: |-
|
||||||
|
${{ github.event.inputs.force_skip_tests != 'true' }}
|
||||||
run: |
|
run: |
|
||||||
npm run preflight
|
npm run preflight
|
||||||
npm run test:integration:sandbox:none
|
npm run test:integration:sandbox:none
|
||||||
@@ -157,21 +159,25 @@ jobs:
|
|||||||
scope: '@qwen-code'
|
scope: '@qwen-code'
|
||||||
|
|
||||||
- name: 'Publish @qwen-code/qwen-code-core'
|
- 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:
|
env:
|
||||||
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
|
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
|
||||||
|
|
||||||
- name: 'Install latest core package'
|
- 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'
|
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'
|
- 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:
|
env:
|
||||||
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
|
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
|
||||||
|
|
||||||
- name: 'Create GitHub Release and Tag'
|
- name: 'Create GitHub Release and Tag'
|
||||||
if: '${{ steps.vars.outputs.is_dry_run == "false" }}'
|
if: |-
|
||||||
|
${{ steps.vars.outputs.is_dry_run == 'false' }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
RELEASE_BRANCH: '${{ steps.release_branch.outputs.BRANCH_NAME }}'
|
RELEASE_BRANCH: '${{ steps.release_branch.outputs.BRANCH_NAME }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user