Skip to content

Commit

Permalink
Add commit sha to build info on staging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento committed Jun 25, 2021
1 parent b413a01 commit 55b81c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
html_url: ${{ steps.create_release_draft.outputs.html_url }}
id: ${{ steps.create_release_draft.outputs.id }}
tag: ${{ steps.release_draft_tag.outputs.tag }}
commit_sha: ${{ steps.release_draft_tag.outputs.commit_sha }}
download_asset_url: ${{ steps.release_json_ext.outputs.download_url }}
steps:
- name: "Checkout"
Expand All @@ -24,6 +25,7 @@ jobs:
# Will match "/refs/{tags,heads}/{tag}-prerelease"
run: |
echo ::set-output name=tag::$(node -p "'${{ github.ref }}'.match(/^.*\/(.+)-prerelease$/)[1]")
echo ::set-output name=commit_sha::$(git rev-parse HEAD)
- name: "Check `tag` against `lerna.json.version`"
shell: bash
Expand Down Expand Up @@ -102,7 +104,7 @@ jobs:
ONLINE_EDITOR__downloadHubUrlLinux: "${{ needs.create_release.outputs.download_asset_url }}/STAGING__business_modeler_hub_preview_linux_${{ needs.create_release.outputs.tag }}.tar.gz"
ONLINE_EDITOR__downloadHubUrlMacOs: "${{ needs.create_release.outputs.download_asset_url }}/STAGING__business_modeler_hub_preview_macos_${{ needs.create_release.outputs.tag }}.zip"
ONLINE_EDITOR__downloadHubUrlWindows: "${{ needs.create_release.outputs.download_asset_url }}/STAGING__business_modeler_hub_preview_windows_${{ needs.create_release.outputs.tag }}.zip"
ONLINE_EDITOR__buildInfo: "${{ needs.create_release.outputs.tag }} (staging)"
ONLINE_EDITOR__buildInfo: "${{ needs.create_release.outputs.tag }} (staging) @ ${{ needs.create_release.outputs.commit_sha }}"
run: |
yarn build:prod
Expand Down

0 comments on commit 55b81c4

Please sign in to comment.