diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 651c364..d36e0f8 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -3,20 +3,21 @@ name: Test on: workflow_call: {} + pull_request: + types: [opened, synchronize] # Disable permissions for all available scopes permissions: {} +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + jobs: setup-and-run-hugo: - name: + name: Test runs-on: ubuntu-latest - permissions: - contents: write timeout-minutes: 20 - concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} - cancel-in-progress: true steps: - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 @@ -30,7 +31,7 @@ jobs: echo "HUGO_VERSION=${HUGO_VERSION}" >> "${GITHUB_OUTPUT}" - name: Setup Hugo - uses: peaceiris/actions-hugo@7db63f5e7f65f5c06a64fd56106389606f84a976 #v3.0.0 + uses: peaceiris/actions-hugo@v3.0.0 with: hugo-version: ${{ steps.hugo-version.outputs.HUGO_VERSION }} extended: true diff --git a/.github/workflows/lint-and-test.yaml b/.github/workflows/lint-and-test.yaml index 2440795..8293812 100644 --- a/.github/workflows/lint-and-test.yaml +++ b/.github/workflows/lint-and-test.yaml @@ -30,12 +30,11 @@ jobs: - name: Dependency Review uses: actions/dependency-review-action@4901385134134e04cec5fbe5ddfe3b2c5bd5d976 # v4.0.0 - test: - # Job name should be the same as the called workflow name for required status - # check to match. In this case job level `name: Test` matches workflow level - # `name: test` in hugo.yaml - name: Test - needs: [lint] - permissions: - contents: write - uses: ./.github/workflows/hugo.yaml + + # test: + # # Job name should be the same as the called workflow name for required status + # # check to match. In this case job level `name: Test` matches workflow level + # # `name: test` in hugo.yaml + # name: Test + # needs: [lint] + # uses: ./.github/workflows/hugo.yaml