chore: fix action lint errors

This commit is contained in:
tanzhenxin
2025-08-22 12:00:10 +08:00
parent 0f3db5275f
commit af0439165a
6 changed files with 28 additions and 14 deletions

View File

@@ -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: |