From f4f1c97db70b2a6e2460ec4f207f5efb2781ac5a Mon Sep 17 00:00:00 2001 From: Jordan Barrett Date: Wed, 18 Oct 2023 14:42:51 +0700 Subject: [PATCH] workflow to check PR is not from a fork --- .github/workflows/pr.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..6f3d048 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,10 @@ +name: "PR" +on: [pull_request, workflow_dispatch] +jobs: + fork: + # check PR is not running from a fork + name: Check head branch + runs-on: ubuntu-latest + steps: + - run: | + echo ${{ github.head_ref }} \ No newline at end of file