From ac912276a69955e9b0173f372d619a1c23bb52dc Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Wed, 16 Apr 2025 15:05:05 +0100 Subject: [PATCH] chore: Set env variable --- .forgejo/workflows/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml index b77435c2..fb71260d 100644 --- a/.forgejo/workflows/test.yaml +++ b/.forgejo/workflows/test.yaml @@ -9,4 +9,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - name: Set env + run: echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV + - name: Test + run: echo $GITHUB_SHA_SHORT