Remove use of expressions inside if

This commit is contained in:
Ayaz Salikhov
2023-10-31 23:55:56 +01:00
parent 7bdc64f5a1
commit c27ab18a05
2 changed files with 4 additions and 4 deletions

View File

@@ -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: |

View File

@@ -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