Skip to content

Commit af54306

Browse files
committed
CI: fix github event reference
use `github.event_name` instead of `github.ref_type` to identify the github event.
1 parent f081463 commit af54306

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
- documentation
9191
- unit-tests
9292
- docker-build
93-
if: ${{ github.ref_type == 'push' }}
93+
if: ${{ github.event_name == 'push' }}
9494
runs-on: ubuntu-latest
9595
permissions:
9696
id-token: write
@@ -124,7 +124,7 @@ jobs:
124124
docker-build-push:
125125
needs:
126126
- integration-tests
127-
if: ${{ (github.ref_type == 'push') && (github.ref == 'refs/heads/master') }}
127+
if: ${{ (github.event_name == 'push') && (github.ref == 'refs/heads/master') }}
128128
runs-on: ubuntu-latest
129129
steps:
130130
- uses: actions/checkout@v4
@@ -146,7 +146,7 @@ jobs:
146146
labels: ${{ steps.meta.outputs.labels }}
147147

148148
docker-build-release:
149-
if: ${{ github.ref_type == 'tag' }}
149+
if: ${{ github.event_name == 'tag' }}
150150
runs-on: ubuntu-latest
151151
steps:
152152
- uses: actions/checkout@v4
@@ -175,7 +175,7 @@ jobs:
175175
labels: ${{ steps.meta.outputs.labels }}
176176

177177
pypi-release:
178-
if: ${{ github.ref_type == 'tag' }}
178+
if: ${{ github.event_name == 'tag' }}
179179
runs-on: ubuntu-latest
180180
steps:
181181
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)