From 29a5e58e622e5761db67972660853dc2a32628d9 Mon Sep 17 00:00:00 2001 From: rizaldy Date: Tue, 13 Feb 2024 11:08:35 +0700 Subject: [PATCH] ci: LAST_COMMIT --- .gitea/workflows/eleventy.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/eleventy.yaml b/.gitea/workflows/eleventy.yaml index 0db58fa..4b20535 100644 --- a/.gitea/workflows/eleventy.yaml +++ b/.gitea/workflows/eleventy.yaml @@ -7,12 +7,11 @@ jobs: steps: - uses: actions/checkout@master - - id: last_commit - run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" + - run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" - name: Build uses: TartanLlama/actions-eleventy@master env: - LAST_COMMIT: ${{ env.last_commit }} + LAST_COMMIT: ${{ vars.git_hash }} with: install_dependencies: true - uses: actions/setup-node@v3