ci: Use if without ${{ }} where possible

This commit is contained in:
Wolfgang Walther
2024-02-22 20:12:18 +01:00
committed by Wolfgang Walther
parent c54e0d3353
commit f9fdf666ad
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -220,14 +220,14 @@ jobs:
restore-keys: | restore-keys: |
cache-stack-${{ runner.os }}- cache-stack-${{ runner.os }}-
- name: Install dependencies - name: Install dependencies
if: ${{ matrix.deps }} if: matrix.deps
run: ${{ matrix.deps }} run: ${{ matrix.deps }}
- name: Build with Stack - name: Build with Stack
run: stack build --lock-file error-on-write --local-bin-path result --copy-bins run: stack build --lock-file error-on-write --local-bin-path result --copy-bins
- name: Strip Executable - name: Strip Executable
run: strip result/postgrest* run: strip result/postgrest*
- name: Save built executable as artifact - name: Save built executable as artifact
if: ${{ matrix.artifact }} if: matrix.artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.artifact }} name: ${{ matrix.artifact }}
@@ -293,7 +293,7 @@ jobs:
Build-Cabal-Arm: Build-Cabal-Arm:
name: Build aarch64 (Cabal, GHC 9.4.8) name: Build aarch64 (Cabal, GHC 9.4.8)
if: "${{ github.event_name == 'push' }}" if: github.event_name == 'push'
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
remotepath: ${{ steps.Remote-Dir.outputs.remotepath }} remotepath: ${{ steps.Remote-Dir.outputs.remotepath }}
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
permissions: permissions:
checks: write checks: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure' }} if: github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure'
steps: steps:
- name: Download from Artifacts - name: Download from Artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4