Skip to content

Commit

Permalink
CI: fix github event reference (#1424)
Browse files Browse the repository at this point in the history
use `github.event_name` instead of `github.ref_type` to identify
the github event.
  • Loading branch information
zaro0508 committed Jan 22, 2024
1 parent f081463 commit 0445e32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- documentation
- unit-tests
- docker-build
if: ${{ github.ref_type == 'push' }}
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
docker-build-push:
needs:
- integration-tests
if: ${{ (github.ref_type == 'push') && (github.ref == 'refs/heads/master') }}
if: ${{ (github.event_name == 'push') && (github.ref == 'refs/heads/master') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -146,7 +146,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

docker-build-release:
if: ${{ github.ref_type == 'tag' }}
if: ${{ github.event_name == 'tag' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

pypi-release:
if: ${{ github.ref_type == 'tag' }}
if: ${{ github.event_name == 'tag' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 0445e32

Please sign in to comment.