diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 76d90dc7..f4b8c05a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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