diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 0f6a4527f..449dca1af 100755 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -31,7 +31,7 @@ jobs: cd .github/scripts go mod download go run . - + # Conditional step: Bump version and create tag only if the comparison script passes - name: Bump Version and Create Tag if: ${{ success() && steps.compare_control.outcome == 'success' }} @@ -57,11 +57,12 @@ jobs: git tag "$new_tag" git push origin "$new_tag" - # Required to push changes to the repository + # Set the new_tag as an output + echo "new_tag=$new_tag" >> $GITHUB_OUTPUT env: GITHUB_TOKEN: ${{ secrets.OG_RELEASE_TAG_UPDATE }} # Output the new tag - name: Display new tag if: ${{ success() && steps.versioning.outcome == 'success' }} - run: echo "Created new tag: ${{ steps.versioning.outputs.new_tag }}" + run: echo "Created new tag: ${{ steps.versioning.outputs.new_tag }}" \ No newline at end of file