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
with:
python-version: 3.x
if: ${{ runner.arch == 'X64' }}
if: runner.arch == 'X64'
- name: Install Dev Dependencies 📦
run: |

View File

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