diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..a66b956 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'weekly' + commit-message: + prefix: 'ci' + groups: + github-actions: + patterns: + - '*' diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index eac9ae2..a82f771 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -1,4 +1,4 @@ -name: Deploy Hugo site to GitHub Pages +name: build-and-deploy on: # Runs on pushes targeting the default branch @@ -6,6 +6,9 @@ on: branches: - master + # Runs on pull requests + pull_request: + # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -64,6 +67,7 @@ jobs: # Deployment job deploy: + if: github.event_name == 'push' && github.ref == 'refs/heads/master' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}