Display hash commit instead of version on main. (#3840)
* Set commit hash on main * Changeset * Set commit hash on main * Update .github/workflows/deploy-master-staging.yaml Co-authored-by: Mikail <6186720+NyanKiyoshi@users.noreply.github.com> --------- Co-authored-by: Mikail <6186720+NyanKiyoshi@users.noreply.github.com>
This commit is contained in:
parent
f8c9317ede
commit
8fbf0d4a88
2 changed files with 11 additions and 0 deletions
5
.changeset/grumpy-eagles-live.md
Normal file
5
.changeset/grumpy-eagles-live.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"saleor-dashboard": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Set custom version within the workflow of deployments from main
|
6
.github/workflows/deploy-master-staging.yaml
vendored
6
.github/workflows/deploy-master-staging.yaml
vendored
|
@ -21,6 +21,12 @@ jobs:
|
||||||
IS_CLOUD_INSTANCE: true
|
IS_CLOUD_INSTANCE: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set custom version
|
||||||
|
run: |
|
||||||
|
HASH=$(git rev-parse --short HEAD)
|
||||||
|
CURRENT_VERSION=$(jq -r .version package.json)
|
||||||
|
echo "CUSTOM_VERSION=${CURRENT_VERSION}-${HASH}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue