File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 28
28
with :
29
29
node-version : 18
30
30
cache : ' npm'
31
+ - name : Get Commit Hash
32
+ run : echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
33
+ - name : Generate Version File
34
+ run : echo "export const COMMIT_HASH = '${{ env.COMMIT_HASH }}';" > src/version.js
31
35
- name : Run install
32
36
run : npm ci
33
37
- name : Build Storybook
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import './About.scss'
6
6
import { useQuery } from '@tanstack/react-query'
7
7
import SlackIcon from '../../resources/slack-icon.svg'
8
8
import Widget from 'src/shared/Widget'
9
+ import { COMMIT_HASH } from '../../version' ;
9
10
10
11
const pageName = 'aboutPage'
11
12
const About = ( ) => {
@@ -164,9 +165,12 @@ const Attributions = () => {
164
165
< h2 > Attributions</ h2 >
165
166
< ul >
166
167
< li >
167
- Thanks < a href = "http://www.applitools.com/" > Applitools</ a > for the free open-source
168
+ Thanks < a href = "http://www.applitools.com/" > Applitools</ a > for the free open-source.
168
169
license for their visual testing tool
169
170
</ li >
171
+ < p >
172
+ Version commit hash: < strong > { COMMIT_HASH } </ strong >
173
+ </ p >
170
174
< li >
171
175
Bus ifmage by{ ' ' }
172
176
< a
Original file line number Diff line number Diff line change
1
+ export const COMMIT_HASH = 'test1234' ;
You can’t perform that action at this time.
0 commit comments