Skip to content
This repository was archived by the owner on May 4, 2026. It is now read-only.

Commit c5959b9

Browse files
authored
Add condition to run job only on main branch
1 parent 0740d1e commit c5959b9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/release_build_push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
jobs:
77
release-and-build:
88
runs-on: ubuntu-latest
9+
if: github.ref == 'refs/heads/main'
10+
911
permissions:
1012
contents: write # Needed to create tags and releases
1113
packages: write # Needed to push to GHCR

0 commit comments

Comments
 (0)