Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchodeluxe committed Jul 9, 2024
1 parent 96874f0 commit 2763870
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,24 @@ jobs:
- name: install yq
uses: mikefarah/yq@master

- name: Setup upterm session
uses: lhotari/action-upterm@v1
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1

- name: bump chart versions
id: bump-version
run: |
cd helm-chart/eoapi
VERSION_TYPE=${{ env.version_type }}
CURRENT_VERSION=$(grep '^version:' Chart.yaml | awk '{print $2}')
# strip double quotes
CURRENT_VERSION=${CURRENT_VERSION#\"}
CURRENT_VERSION=${CURRENT_VERSION%\"}
CURRENT_APP_VERSION=$(grep '^appVersion:' Chart.yaml | awk '{print $2}')
# strip double quotes
CURRENT_APP_VERSION=${CURRENT_APP_VERSION#\"}
CURRENT_APP_VERSION=${CURRENT_APP_VERSION%\"}
IFS='.' read -r -a VERSION_PARTS <<< "$CURRENT_VERSION"
IFS='.' read -r -a APP_VERSION_PARTS <<< "$CURRENT_APP_VERSION"
Expand Down Expand Up @@ -74,13 +82,9 @@ jobs:
- name: commit and tag version bump
run: |
# strip double quotes from the new_version environment variable
NEW_VERSION=${{ env.new_version }}
NEW_VERSION=${NEW_VERSION#\"}
NEW_VERSION=${NEW_VERSION%\"}
COMMIT_MSG="release version to $NEW_VERSION"
TAG="v$NEW_VERSION"
COMMIT_MSG="release version to ${{ env.new_version }}"
TAG="v${{ env.new_version }}"
echo $TAG $COMMIT_MSG
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
Expand Down

0 comments on commit 2763870

Please sign in to comment.