From ae539a36348e5ef73f2213647005e104d5ba4a36 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Mon, 16 Jun 2025 10:10:23 -0400 Subject: [PATCH] feat: add an action that handles git checkouts for all workflows --- .github/actions/shared-checkout/action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/actions/shared-checkout/action.yml diff --git a/.github/actions/shared-checkout/action.yml b/.github/actions/shared-checkout/action.yml new file mode 100644 index 000000000..59a236db8 --- /dev/null +++ b/.github/actions/shared-checkout/action.yml @@ -0,0 +1,12 @@ +name: Checkout +description: Checkout repository for pull requests and branches +runs: + using: "composite" + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} + ref: ${{ github.event.pull_request.head.sha || github.sha }} + fetch-depth: 0 + fetch-tags: true