versioning-test/.gitea/workflows/commit-hash.yaml
Ryan Freeman 64d9951f5f
All checks were successful
Commit Hash / CommitHash (push) Successful in 1s
Add workflow
2024-09-21 18:54:12 +01:00

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}