versioning-test/.gitea/workflows/commit-hash.yaml

14 lines
228 B
YAML
Raw Permalink Normal View History

2024-09-21 17:51:43 +00:00
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}