add check out optional step
This commit is contained in:
8
.github/workflows/publish_docker.yml
vendored
8
.github/workflows/publish_docker.yml
vendored
@@ -1,6 +1,10 @@
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
checkout-code:
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
artifact-skip:
|
||||
required: false
|
||||
type: boolean
|
||||
@@ -51,6 +55,10 @@ jobs:
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
if: ${{ inputs.checkout-code == true }}
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
if: ${{ inputs.artifact-skip != true }}
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user