From 792244b0328e03d7ea67d55bb37600724c1dc260 Mon Sep 17 00:00:00 2001 From: smf Date: Sun, 3 Mar 2024 15:03:27 +0800 Subject: [PATCH] artifact skip --- .github/workflows/publish_docker.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml index fffa135..c429eaf 100644 --- a/.github/workflows/publish_docker.yml +++ b/.github/workflows/publish_docker.yml @@ -3,15 +3,22 @@ name: publish on: workflow_call: inputs: + artifact-skip: + required: false + type: boolean + default: false artifact-name: - required: true + required: false type: string + default: 'artifact' docker_context: - required: true + required: false type: string + default: '.' dockerfile_path: - required: true + required: false type: string + default: './Dockerfile' jobs: @@ -23,6 +30,7 @@ jobs: RUNNER_TOOL_CACHE: /toolcache steps: - uses: actions/download-artifact@v3 + if: ${{ ! inputs.artifact-skip}} with: name: ${{ inputs.artifact-name }}