Skip to content

Commit

Permalink
fixing NEW version interpolation issue in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
githubofkrishnadhas committed Jul 6, 2024
1 parent f18b31a commit 5df5c0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-publish-jenkins-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and publish docker image with tag
env:
NEW_VERSION: $NEW_VERSION
# env:
# NEW_VERSION: $NEW_VERSION
uses: docker/build-push-action@v5
with:
push: true
Expand Down
2 changes: 1 addition & 1 deletion get_latest_version_create_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ echo "New version after incrementing: $NEW_VERSION"
echo $NEW_VERSION > version.txt
echo "Updated version in version.txt: $NEW_VERSION"
echo "NEW_VERSION=$NEW_VERSION" >> "$GITHUB_ENV"
echo "Set NEW_VERSION=${NEW_VERSION} in GitHub environment"
echo "Set NEW_VERSION=$NEW_VERSION in GitHub environment"

# Setting local user and email
git config --local user.email "devwithkrishna-github-actions[bot]@users.noreply.github.com"
Expand Down
1 change: 0 additions & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
v1.0.0

0 comments on commit 5df5c0d

Please sign in to comment.