diff --git a/.github/workflows/build-publish-jenkins-image.yaml b/.github/workflows/build-publish-jenkins-image.yaml index 9a55e98..417892f 100644 --- a/.github/workflows/build-publish-jenkins-image.yaml +++ b/.github/workflows/build-publish-jenkins-image.yaml @@ -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