From 9aa68d5cfca0e4c14df62a84d6b5506a7fd6f268 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Fri, 1 Mar 2024 07:09:17 +0100 Subject: [PATCH] chore(github-action): try to get the version right --- .github/workflows/node.js.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c6204cd..107c71f 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,7 +1,7 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Create Pre Release +name: Create Nightly Release on: push: @@ -32,17 +32,17 @@ jobs: - name: Set release names id: set_names run: | - echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)_nightly" >> "$GITHUB_ENV" + echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" - name: Create Pre Release id: create_pre_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: "$version" - release_name: Pre-Release "$version" + tag_name: format('{0}_nightly', $version) + release_name: format('{0} {1}', Nightly-Release, $version) body: | - Automatic generated pre-release with the latest features and bugfixes + Automatic generated nightly release with the latest features and bugfixes draft: false prerelease: true - path: deployments/journey_recorder_nightly_"$version".zip + path: format('deployments/journey_recorder_nightly_{0}.zip', $version)