From 89017b5bac77d50973c3961e7e554bb29a1e6829 Mon Sep 17 00:00:00 2001 From: Ryan Freeman Date: Sat, 21 Sep 2024 18:51:43 +0100 Subject: [PATCH] Add workflow --- .gitea/workflows/commit-hash.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitea/workflows/commit-hash.yaml diff --git a/.gitea/workflows/commit-hash.yaml b/.gitea/workflows/commit-hash.yaml new file mode 100644 index 0000000..583e2d3 --- /dev/null +++ b/.gitea/workflows/commit-hash.yaml @@ -0,0 +1,13 @@ +name: Commit Hash +run-name: Print commit hash +on: [ push ] + +jobs: + BuildAndPublish: + runs-on: ubuntu-latest + steps: + - name: Print commit hash + run: | + hash=${{env.GITHUB_SHA}} + echo ${hash::10} +