Skip to content

Commit

Permalink
Ensure correct version is calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiefdhurst committed Feb 14, 2024
1 parent b476dca commit e93c2be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,12 @@ jobs:
run: |
export version=$(echo ${{ steps.latest.outputs.name }} | sed 's/^v//')
echo ::set-output name=name::$version
- name: Update Version in Files (1)
- name: Update Version in Files
if: ${{ contains(steps.latest.outputs.name, '.') }}
uses: datamonsters/replace-action@v2
with:
files: 'blog/config.py'
replacements: '${{ steps.latest_clean.outputs.name }}=${{ steps.version.outputs.value }}'
- name: Update Version in Files (2)
if: ${{ contains(steps.latest.outputs.name, '.') }}
uses: datamonsters/replace-action@v2
with:
files: 'web/app/package.json'
replacements: '${{ steps.latest_clean.outputs.name }}=${{ steps.version.outputs.value }}'
replacements: "${{ steps.latest_clean.outputs.name }}=${{ steps.version.outputs.value }}"
- name: File Save Delay
uses: jakejarvis/wait-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion blog/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

SECRET_KEY = environ.get('SECRET_KEY', default='dev')
ARTICLES_DIR = environ.get('ARTICLES_DIR', default='articles/')
VERSION = 'v0.18.2'
VERSION = 'v0.22.0'

0 comments on commit e93c2be

Please sign in to comment.