From d5fcad9000edababfc62324ec20188785fe6e4ec Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Sun, 22 Oct 2023 16:15:41 +0200 Subject: [PATCH] actually use the passed commit --- .github/workflows/website.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 8fe7f8c5..cee77b38 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -14,15 +14,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - name: Use latest Node.js uses: actions/setup-node@v3 - name: Get version run: | if [ -n "${{ inputs.version }}" ]; then - echo COMMIT="${{ inputs.version }}" >> $GITHB_ENV + echo COMMIT="${{ inputs.version }}" >> $GITHUB_ENV else - echo COMMIT="${{ github.ref }}" >> $GITHB_ENV + echo COMMIT="${{ github.ref }}" >> $GITHUB_ENV + fi + - uses: actions/checkout@v3 + with: + ref: ${{ env.COMMIT }} - name: Create site run: tar -cvf "$RUNNER_TEMP/artifact.tar" README.md - name: Upload to Github Pages