moved variable out of github actions

This commit is contained in:
Christopher Bisset 2022-08-08 08:58:45 +10:00
parent 29288b5edc
commit 9db27aaa28
2 changed files with 3 additions and 4 deletions

View file

@ -36,10 +36,6 @@ jobs:
$(docker manifest inspect ghcr.io/${{ github.repository }}:$VERSION > /dev/null) || NOT_PREVIOUSLY_PUBLISHED=1
echo "::set-output name=NOT_PREVIOUSLY_PUBLISHED::$NOT_PREVIOUSLY_PUBLISHED"
- name: Update Version in Code
run: |
sed -i 's/insert-version/${{ steps.gathervars.outputs.VERSION }}/g' ./src/routes/settings.html.svelte
- name: Log in to the Container registry
uses: docker/login-action@v1
if: ${{ steps.gathervars.outputs.NOT_PREVIOUSLY_PUBLISHED != 0 }}

View file

@ -8,5 +8,8 @@ git clone ${PROJECT_URL} ${PROJECT_NAME}
cd ${PROJECT_NAME}
npm install
# inject the version number
sed -i 's/insert-version/${{ steps.gathervars.outputs.VERSION }}/g' ./src/routes/settings.html.svelte
# build the project
npm run build