diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ea79893..aa6728a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,17 +1,13 @@ name: Generate terraform docs -on: - push: - branches: - - master - +on: [pull_request] jobs: docs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: - ref: master + ref: ${{ github.head_ref }} - name: Render terraform docs inside the README.md and push changes back to pushed branch uses: DNXLabs/terraform-docs@v1.0.0