Skip to content

Commit fe2ee3e

Browse files
modify workflow to run the tag generation only in main branch
1 parent 2e1dce1 commit fe2ee3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build-publish-jenkins-image.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
run: echo "JOB_START_TIME=$(date -u +"%d %B %A %Y %H:%M UTC")" >> $GITHUB_ENV
2424

2525
- name: Git config and create new tag
26+
if: github.ref == 'refs/heads/main' # Run only on main branch
2627
run: |
2728
# Run bash script to get new tag
2829
bash get_latest_version_create_tag.sh

0 commit comments

Comments
 (0)