.github: simplify expression guards

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-07-04 09:35:47 +02:00
committed by Richard Alpe
parent 259239ce5b
commit ff8cd981e1
+2 -2
View File
@@ -10,7 +10,7 @@ on:
jobs:
build:
if: ${{github.ref == 'refs/heads/main' && github.event_name == 'push'}} || github.event_name == 'workflow_dispatch'
if: ${{github.ref_name == 'main' && github.event_name == 'push'}} || github.event_name == 'workflow_dispatch'
name: Build ${{ matrix.platform }} ${{ matrix.variant }}
runs-on: ubuntu-latest
strategy:
@@ -72,7 +72,7 @@ jobs:
with:
path: output/${{ steps.vars.outputs.tgz }}
release:
if: ${{github.repository == 'kernelkit/infix' && github.ref == 'refs/heads/main'}}
if: ${{github.repository_owner == 'kernelkit' && github.ref_name == 'main'}}
name: Upload Latest Build
needs: build
runs-on: ubuntu-latest