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:
Patryk Andrzejewski 2023-07-05 16:02:38 +02:00 committed by GitHub
parent f8c9317ede
commit 8fbf0d4a88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---
Set custom version within the workflow of deployments from main

View file

@ -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: