Skip to content

Commit

Permalink
replace ref with sha to get last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Mar 13, 2024
1 parent 4daf9ab commit f124db7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}"
Expand Down

0 comments on commit f124db7

Please sign in to comment.