14 lines
228 B
YAML
14 lines
228 B
YAML
|
name: Commit Hash
|
||
|
run-name: Print commit hash
|
||
|
on: [ push ]
|
||
|
|
||
|
jobs:
|
||
|
CommitHash:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Print commit hash
|
||
|
run: |
|
||
|
hash=${{env.GITHUB_SHA}}
|
||
|
echo ${hash::10}
|
||
|
|