File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 22
33name : CI
44
5- env :
6- CHECKSUM : 8c5ca141a109ed3075b65c1da2691648e7fc8b16
75# Controls when the action will run. Triggers the workflow on push or pull request
86# events but only for the master branch
97on :
2624 uses : actions/setup-node@v1
2725 with :
2826 node-version : ' 12.x'
27+ # Install jq if it's not already available
28+ - name : Install jq
29+ run : sudo apt-get install jq
2930
31+ # Fetch the latest commit hash
32+ - name : Get latest commit hash from reproschema-ui
33+ run : |
34+ LATEST_HASH=$(curl -s https://api.github.com/repos/ReproNim/reproschema-ui/commits/master | jq -r '.sha')
35+ echo "CHECKSUM=$LATEST_HASH" >> $GITHUB_ENV
36+
3037 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3138 - uses : actions/checkout@v2
3239
You can’t perform that action at this time.
0 commit comments