From 2da0071af082653388f30176de39480a779a1ef0 Mon Sep 17 00:00:00 2001 From: Anthony Calandra Date: Mon, 21 Feb 2022 13:48:13 -0500 Subject: [PATCH] Trigger workflows when pushing or opening PRs to the master branch. --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9c8a3e1..e588b01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,9 @@ name: auto-generate-readme on: push: + branches: [master] + pull_request: + branches: [master] jobs: auto-generate-readme: @@ -8,6 +11,9 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v2 + with: + ref: ${{github.event.pull_request.head.ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} - name: Install Python3 uses: actions/setup-python@v2 with: