From f124db7efa36fd7266804b3f30e63ead5e615a2b Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Tue, 12 Mar 2024 21:26:01 -0300 Subject: [PATCH] replace ref with sha to get last commit --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 98d8b666a..ac1be418f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: steps: - name: Build Hash id: build-hash - run: echo "_BUILD_HASH=wc-$(echo "${{github.ref}}-${{inputs.connect-branch}}" | shasum -b -a 384 | awk '{ print $1 }' | cut -c -10)" >> "${GITHUB_OUTPUT}" + run: echo "_BUILD_HASH=wc-$(echo "${{github.sha}}-${{inputs.connect-branch}}" | shasum -b -a 384 | awk '{ print $1 }' | cut -c -10)" >> "${GITHUB_OUTPUT}" docs: name: "Documentation" runs-on: "ubuntu-latest" @@ -226,7 +226,7 @@ jobs: run: | pushd connect-loader/apps/connect npm version $(node -p -e "require('./package.json').version")-${{inputs.separator}}$(echo ${{ github.sha }} | cut -c -10) - echo "_PKG_VERSION=$(node -p -e "require('./package.json').version")-${{inputs.separator}}$(echo "${{github.ref}}-${{inputs.connect-branch}}" | shasum -b -a 384 | awk '{ print $1 }' | cut -c -10)" >> "${GITHUB_OUTPUT}" + echo "_PKG_VERSION=$(node -p -e "require('./package.json').version")-${{inputs.separator}}$(echo "${{github.sha}}-${{inputs.connect-branch}}" | shasum -b -a 384 | awk '{ print $1 }' | cut -c -10)" >> "${GITHUB_OUTPUT}" - name: Build Custom Wormhole Connect Loader env: PUBLIC_URL: ${{ inputs.public-url }} @@ -295,7 +295,8 @@ jobs: id: set-version run: | pushd connect-loader/apps/connect - echo "_PKG_VERSION=$(node -p -e "require('./package.json').version")-${{inputs.separator}}$(echo "${{github.ref}}-${{inputs.connect-branch}}" | shasum -b -a 384 | awk '{ print $1 }' | cut -c -10)" >> "${GITHUB_OUTPUT}" + npm version $(node -p -e "require('./package.json').version")-${{inputs.separator}}$(echo ${{ github.sha }} | cut -c -10) + echo "_PKG_VERSION=$(node -p -e "require('./package.json').version")-${{inputs.separator}}$(echo "${{github.sha}}-${{inputs.connect-branch}}" | shasum -b -a 384 | awk '{ print $1 }' | cut -c -10)" >> "${GITHUB_OUTPUT}" - name: Build Custom Wormhole Connect Loader env: PUBLIC_URL: "${{ inputs.public-url }}"