mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-18 23:42:55 +00:00
Remove use of expressions inside if
This commit is contained in:
2
.github/actions/create-dev-env/action.yml
vendored
2
.github/actions/create-dev-env/action.yml
vendored
@@ -11,7 +11,7 @@ runs:
|
|||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
if: ${{ runner.arch == 'X64' }}
|
if: runner.arch == 'X64'
|
||||||
|
|
||||||
- name: Install Dev Dependencies 📦
|
- name: Install Dev Dependencies 📦
|
||||||
run: |
|
run: |
|
||||||
|
@@ -38,7 +38,7 @@ jobs:
|
|||||||
# Also, they might have running or stopped containers,
|
# Also, they might have running or stopped containers,
|
||||||
# which are not cleaned up by `docker system prun`
|
# which are not cleaned up by `docker system prun`
|
||||||
- name: Reset docker state and cleanup artifacts 🗑️
|
- name: Reset docker state and cleanup artifacts 🗑️
|
||||||
if: ${{ inputs.platform != 'x86_64' }}
|
if: inputs.platform != 'x86_64'
|
||||||
run: |
|
run: |
|
||||||
docker kill $(docker ps --quiet) || true
|
docker kill $(docker ps --quiet) || true
|
||||||
docker rm $(docker ps --all --quiet) || true
|
docker rm $(docker ps --all --quiet) || true
|
||||||
@@ -47,14 +47,14 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Load parent built image to Docker 📥
|
- name: Load parent built image to Docker 📥
|
||||||
if: ${{ inputs.parentImage != '' }}
|
if: inputs.parentImage != ''
|
||||||
uses: ./.github/actions/load-image
|
uses: ./.github/actions/load-image
|
||||||
with:
|
with:
|
||||||
image: ${{ inputs.parentImage }}
|
image: ${{ inputs.parentImage }}
|
||||||
platform: ${{ inputs.platform }}
|
platform: ${{ inputs.platform }}
|
||||||
|
|
||||||
- name: Pull ubuntu:22.04 image 📥
|
- name: Pull ubuntu:22.04 image 📥
|
||||||
if: ${{ inputs.parentImage == '' }}
|
if: inputs.parentImage == ''
|
||||||
run: docker pull ubuntu:22.04
|
run: docker pull ubuntu:22.04
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user