Skip to content

Commit

Permalink
modify workflow to run the tag generation only in main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
githubofkrishnadhas committed Jul 11, 2024
1 parent 2e1dce1 commit fe2ee3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-publish-jenkins-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
run: echo "JOB_START_TIME=$(date -u +"%d %B %A %Y %H:%M UTC")" >> $GITHUB_ENV

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

0 comments on commit fe2ee3e

Please sign in to comment.