diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index db1aef0..4c6c146 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -14,7 +14,7 @@ jobs: runs-on: self-hosted steps: - name: Fetch git repository - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.6 with: fetch-depth: 0 path: website @@ -28,12 +28,15 @@ jobs: TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Merge test branch - uses: linaro-its/merge-test-branch@v2.6 + uses: linaro-its/merge-test-branch@v2.7 with: path: website - name: Build site - run: cd ${{ github.workspace }}/website && /srv/github-action-scripts/build-astro-site.sh + run: | + source ~/.nvm/nvm.sh + nvm use 20 + cd ${{ github.workspace }}/website && /srv/github-action-scripts/build-astro-site.sh env: TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 13a86be..4be69d6 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -15,7 +15,7 @@ jobs: runs-on: self-hosted steps: - name: Fetch git repository - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.6 with: path: website @@ -23,7 +23,10 @@ jobs: run: cat "$GITHUB_WORKSPACE/website/.github-env-${GITHUB_REF##*/}" >> $GITHUB_ENV - name: Build site - run: cd ${{ github.workspace }}/website && /srv/github-action-scripts/build-astro-site.sh + run: | + source ~/.nvm/nvm.sh + nvm use 20 + cd ${{ github.workspace }}/website && /srv/github-action-scripts/build-astro-site.sh - name: Check links run: /srv/github-action-scripts/check-links.sh ${{ github.workspace }}/website/dist