Skip to content

Commit 732f5db

Browse files
chore(workflow): update version info with the latest commit during dev build workflow
1 parent cd4952d commit 732f5db

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/dev-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ jobs:
3939
- name: Checkout
4040
uses: actions/checkout@v2
4141

42+
- name: Update version number
43+
run: |
44+
VERSION=${GITHUB_REF//*\/}
45+
echo "export default { version: '$VERSION' };" > src/versionInfo.ts
46+
4247
# Setup gcloud CLI
4348
- name: Setup CLI
4449
uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7

0 commit comments

Comments
 (0)