Skip to content

Commit c3a37c0

Browse files
authored
Merge pull request #9 from opengovern/feat-updating-format1
updating workflow
2 parents 3998403 + df2fee5 commit c3a37c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
cd .github/scripts
3232
go mod download
3333
go run .
34-
34+
3535
# Conditional step: Bump version and create tag only if the comparison script passes
3636
- name: Bump Version and Create Tag
3737
if: ${{ success() && steps.compare_control.outcome == 'success' }}
@@ -57,11 +57,12 @@ jobs:
5757
git tag "$new_tag"
5858
git push origin "$new_tag"
5959
60-
# Required to push changes to the repository
60+
# Set the new_tag as an output
61+
echo "new_tag=$new_tag" >> $GITHUB_OUTPUT
6162
env:
6263
GITHUB_TOKEN: ${{ secrets.OG_RELEASE_TAG_UPDATE }}
6364

6465
# Output the new tag
6566
- name: Display new tag
6667
if: ${{ success() && steps.versioning.outcome == 'success' }}
67-
run: echo "Created new tag: ${{ steps.versioning.outputs.new_tag }}"
68+
run: echo "Created new tag: ${{ steps.versioning.outputs.new_tag }}"

0 commit comments

Comments
 (0)