-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add path to push to main branch to only run release on changes to main
- Loading branch information
Andrew Pelletier
committed
Feb 2, 2024
1 parent
979b174
commit 3367d84
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,18 @@ on: | |
push: | ||
branches: | ||
- main | ||
paths: | ||
- operator/** | ||
- "!operator/webhook/**" | ||
- .github/workflows/operator.yml | ||
|
||
env: | ||
WORKING_DIR: ./operator | ||
GIT_TAG_PREFIX: operator_v | ||
|
||
jobs: | ||
build: | ||
if: github.ref != 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
|
@@ -26,6 +31,7 @@ jobs: | |
name: generate release files | ||
|
||
release: | ||
if: github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
|
@@ -43,6 +49,7 @@ jobs: | |
name: generate names for artifacts | ||
- run: make prep-release | ||
name: generate release files | ||
|
||
- uses: mathieudutour/[email protected] | ||
id: tag_version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters