artifact skip

This commit is contained in:
smf
2024-03-03 15:03:27 +08:00
parent 6a4ece49e5
commit 792244b032

View File

@@ -3,15 +3,22 @@ name: publish
on: on:
workflow_call: workflow_call:
inputs: inputs:
artifact-skip:
required: false
type: boolean
default: false
artifact-name: artifact-name:
required: true required: false
type: string type: string
default: 'artifact'
docker_context: docker_context:
required: true required: false
type: string type: string
default: '.'
dockerfile_path: dockerfile_path:
required: true required: false
type: string type: string
default: './Dockerfile'
jobs: jobs:
@@ -23,6 +30,7 @@ jobs:
RUNNER_TOOL_CACHE: /toolcache RUNNER_TOOL_CACHE: /toolcache
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
if: ${{ ! inputs.artifact-skip}}
with: with:
name: ${{ inputs.artifact-name }} name: ${{ inputs.artifact-name }}