8000 feat: add an action that handles git checkouts for all workflows (#1644) · paliwangtel/postgres@a7c5b02 · GitHub
[go: up one dir, main page]

Skip to content

Commit a7c5b02

Browse files
authored
feat: add an action that handles git checkouts for all workflows (supabase#1644)
1 parent 87829eb commit a7c5b02

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Checkout
2+
description: Checkout repository for pull requests and branches
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Checkout repository
7+
uses: actions/checkout@v4
8+
with:
9+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
10+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
11+
fetch-depth: 0
12+
fetch-tags: true

0 commit comments

Comments
 (0)
0