mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 15:02:57 +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
|
||||
with:
|
||||
python-version: 3.x
|
||||
if: ${{ runner.arch == 'X64' }}
|
||||
if: runner.arch == 'X64'
|
||||
|
||||
- name: Install Dev Dependencies 📦
|
||||
run: |
|
||||
|
@@ -38,7 +38,7 @@ jobs:
|
||||
# Also, they might have running or stopped containers,
|
||||
# which are not cleaned up by `docker system prun`
|
||||
- name: Reset docker state and cleanup artifacts 🗑️
|
||||
if: ${{ inputs.platform != 'x86_64' }}
|
||||
if: inputs.platform != 'x86_64'
|
||||
run: |
|
||||
docker kill $(docker ps --quiet) || true
|
||||
docker rm $(docker ps --all --quiet) || true
|
||||
@@ -47,14 +47,14 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
- name: Load parent built image to Docker 📥
|
||||
if: ${{ inputs.parentImage != '' }}
|
||||
if: inputs.parentImage != ''
|
||||
uses: ./.github/actions/load-image
|
||||
with:
|
||||
image: ${{ inputs.parentImage }}
|
||||
platform: ${{ inputs.platform }}
|
||||
|
||||
- name: Pull ubuntu:22.04 image 📥
|
||||
if: ${{ inputs.parentImage == '' }}
|
||||
if: inputs.parentImage == ''
|
||||
run: docker pull ubuntu:22.04
|
||||
shell: bash
|
||||
|
||||
|
Reference in New Issue
Block a user