Skip to content

Commit

Permalink
actually use the passed commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Oct 22, 2023
1 parent 9acc618 commit d5fcad9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5fcad9

Please sign in to comment.