Skip to content

Commit

Permalink
VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed Aug 16, 2023
1 parent 9f61996 commit fdb1359
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set VERSION
VERSION=$( echo "${{ github.event.repository.updated_at}}" | tr -d 'TZ:-' )
echo "VERSION=$VERSION" >> $GITHUB_ENV
run: |
VERSION=$( echo "${{ github.event.repository.updated_at}}" | tr -d 'TZ:-' )
VERSION="${VERSION:2:6}.${VERSION:8:4}.0"
echo "VERSION:$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Docker buildx
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- name: version
run: |
VERSION=$( echo "${{ github.event.repository.updated_at}}" | tr -d 'TZ:-' )
VERSION="${VERSION:2:6}.${VERSION:8:4}.0"
echo "VERSION:$VERSION"
sed -i -e "s/__VERSION__/$VERSION/g" helm/Chart.yaml
cat helm/Chart.yaml
- name: push
Expand Down

0 comments on commit fdb1359

Please sign in to comment.