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:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
checkout-code:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
artifact-skip:
|
artifact-skip:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
@@ -51,6 +55,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUNNER_TOOL_CACHE: /toolcache
|
RUNNER_TOOL_CACHE: /toolcache
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
if: ${{ inputs.checkout-code == true }}
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
if: ${{ inputs.artifact-skip != true }}
|
if: ${{ inputs.artifact-skip != true }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user