From ca3037d5d33f431c208a7dafaaf83543b94aa771 Mon Sep 17 00:00:00 2001 From: rizaldy Date: Thu, 15 Feb 2024 00:10:55 +0700 Subject: [PATCH] ci: LAST_COMMIT --- .gitea/workflows/eleventy.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/eleventy.yaml b/.gitea/workflows/eleventy.yaml index 4b20535..48142ed 100644 --- a/.gitea/workflows/eleventy.yaml +++ b/.gitea/workflows/eleventy.yaml @@ -7,16 +7,14 @@ jobs: steps: - uses: actions/checkout@master - - run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" + - run: echo "LAST_COMMIT=`git rev-parse --short HEAD`" >> $GITHUB_ENV - name: Build uses: TartanLlama/actions-eleventy@master - env: - LAST_COMMIT: ${{ vars.git_hash }} with: install_dependencies: true - uses: actions/setup-node@v3 with: - node-version: '20.x' + node-version: "20.x" cache: "npm" - run: npx wrangler pages deploy dist --project-name=$CF_PROJECT_NAME --branch=$GITHUB_REF_NAME env: