Skip to content

Commit 04794c3

Browse files
committed
feat: cover all workflows
1 parent 0a101f3 commit 04794c3

14 files changed

+179
-1
lines changed

.github/workflows/ami-release-nix-single.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ jobs:
2626
- name: Checkout Repo
2727
uses: actions/checkout@v3
2828
with:
29-
ref: ${{ github.event.inputs.branch }}
29+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
30+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
31+
fetch-depth: 0
32+
fetch-tags: true
33+
token: ${{ secrets.GITHUB_TOKEN }}
3034

3135
- name: Get current branch SHA
3236
id: get_sha

.github/workflows/ami-release-nix.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
steps:
2424
- name: Checkout Repo
2525
uses: actions/checkout@v3
26+
with:
27+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
28+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
29+
fetch-depth: 0
30+
fetch-tags: true
31+
token: ${{ secrets.GITHUB_TOKEN }}
2632

2733
- uses: DeterminateSystems/nix-installer-action@main
2834

@@ -49,6 +55,12 @@ jobs:
4955
steps:
5056
- name: Checkout Repo
5157
uses: actions/checkout@v3
58+
with:
59+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
60+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
61+
fetch-depth: 0
62+
fetch-tags: true
63+
token: ${{ secrets.GITHUB_TOKEN }}
5264

5365
- uses: DeterminateSystems/nix-installer-action@main
5466

.github/workflows/check-shellscripts.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v3
18+
with:
19+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
20+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
21+
fetch-depth: 0
22+
fetch-tags: true
23+
token: ${{ secrets.GITHUB_TOKEN }}
1824
- name: Run ShellCheck
1925
uses: ludeeus/action-shellcheck@master
2026
env:

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
steps:
1414
- name: Checkout Repo
1515
uses: actions/checkout@v3
16+
with:
17+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
18+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
19+
fetch-depth: 0
20+
fetch-tags: true
21+
token: ${{ secrets.GITHUB_TOKEN }}
1622

1723
- name: Load postgres_release values
1824
id: load_postgres_release

.github/workflows/dockerhub-release-matrix.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
- uses: DeterminateSystems/nix-installer-action@main
2424
- name: Checkout Repo
2525
uses: actions/checkout@v3
26+
with:
27+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
28+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
29+
fetch-depth: 0
30+
fetch-tags: true
31+
token: ${{ secrets.GITHUB_TOKEN }}
2632
- name: Generate build matrix
2733
id: set-matrix
2834
run: |
@@ -54,6 +60,12 @@ jobs:
5460
build_args: ${{ steps.args.outputs.result }}
5561
steps:
5662
- uses: actions/checkout@v3
63+
with:
64+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
65+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
66+
fetch-depth: 0
67+
fetch-tags: true
68+
token: ${{ secrets.GITHUB_TOKEN }}
5769
- uses: DeterminateSystems/nix-installer-action@main
5870
- name: Set PostgreSQL version environment variable
5971
run: echo "POSTGRES_MAJOR_VERSION=${{ matrix.version }}" >> $GITHUB_ENV
@@ -78,6 +90,12 @@ jobs:
7890
timeout-minutes: 180
7991
steps:
8092
- uses: actions/checkout@v3
93+
with:
94+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
95+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
96+
fetch-depth: 0
97+
fetch-tags: true
98+
token: ${{ secrets.GITHUB_TOKEN }}
8199
- uses: DeterminateSystems/nix-installer-action@main
82100
- run: docker context create builders
83101
- uses: docker/setup-buildx-action@v3
@@ -133,6 +151,12 @@ jobs:
133151
runs-on: ubuntu-latest
134152
steps:
135153
- uses: actions/checkout@v3
154+
with:
155+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
156+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
157+
fetch-depth: 0
158+
fetch-tags: true
159+
token: ${{ secrets.GITHUB_TOKEN }}
136160
- uses: DeterminateSystems/nix-installer-action@main
137161
- uses: docker/setup-buildx-action@v3
138162
- uses: docker/login-action@v2
@@ -176,6 +200,12 @@ jobs:
176200
runs-on: ubuntu-latest
177201
steps:
178202
- uses: actions/checkout@v3
203+
with:
204+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
205+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
206+
fetch-depth: 0
207+
fetch-tags: true
208+
token: ${{ secrets.GITHUB_TOKEN }}
179209
- uses: DeterminateSystems/nix-installer-action@main
180210

181211
- name: Debug Input from Prepare

.github/workflows/manual-docker-release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
- uses: DeterminateSystems/nix-installer-action@main
2121
- name: Checkout Repo
2222
uses: actions/checkout@v3
23+
with:
24+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
25+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
26+
fetch-depth: 0
27+
fetch-tags: true
28+
token: ${{ secrets.GITHUB_TOKEN }}
2329
- name: Generate build matrix
2430
id: set-matrix
2531
run: |
@@ -51,6 +57,12 @@ jobs:
5157
build_args: ${{ steps.args.outputs.result }}
5258
steps:
5359
- uses: actions/checkout@v3
60+
with:
61+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
62+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
63+
fetch-depth: 0
64+
fetch-tags: true
65+
token: ${{ secrets.GITHUB_TOKEN }}
5466
- uses: DeterminateSystems/nix-installer-action@main
5567
- name: Set PostgreSQL version environment variable
5668
run: echo "POSTGRES_MAJOR_VERSION=${{ matrix.version }}" >> $GITHUB_ENV
@@ -75,6 +87,12 @@ jobs:
7587
timeout-minutes: 180
7688
steps:
7789
- uses: actions/checkout@v3
90+
with:
91+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
92+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
93+
fetch-depth: 0
94+
fetch-tags: true
95+
token: ${{ secrets.GITHUB_TOKEN }}
7896
- uses: DeterminateSystems/nix-installer-action@main
7997
- run: docker context create builders
8098
- uses: docker/setup-buildx-action@v3
@@ -142,6 +160,12 @@ jobs:
142160
runs-on: ubuntu-latest
143161
steps:
144162
- uses: actions/checkout@v3
163+
with:
164+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
165+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
166+
fetch-depth: 0
167+
fetch-tags: true
168+
token: ${{ secrets.GITHUB_TOKEN }}
145169
- uses: DeterminateSystems/nix-installer-action@main
146170
- uses: docker/setup-buildx-action@v3
147171
- uses: docker/login-action@v2
@@ -185,6 +209,12 @@ jobs:
185209
runs-on: ubuntu-latest
186210
steps:
187211
- uses: actions/checkout@v3
212+
with:
213+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
214+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
215+
fetch-depth: 0
216+
fetch-tags: true
217+
token: ${{ secrets.GITHUB_TOKEN }}
188218
- uses: DeterminateSystems/nix-installer-action@main
189219

190220
- name: Debug Input from Prepare

.github/workflows/mirror-postgrest.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
postgrest_release: ${{ steps.args.outputs.result }}
1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
23+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
24+
fetch-depth: 0
25+
fetch-tags: true
26+
token: ${{ secrets.GITHUB_TOKEN }}
2127
- id: args
2228
uses: mikefarah/yq@master
2329
with:

.github/workflows/publish-migrations-prod.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323

2424
- name: Checkout Repo
2525
uses: actions/checkout@v2
26+
with:
27+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
28+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
29+
fetch-depth: 0
30+
fetch-tags: true
31+
token: ${{ secrets.GITHUB_TOKEN }}
2632

2733
- name: Merging migration files
2834
run: cat $(ls -1) > ../migration-output.sql

.github/workflows/publish-migrations-staging.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
steps:
1818
- name: Checkout Repo
1919
uses: actions/checkout@v2
20+
with:
21+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
22+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
23+
fetch-depth: 0
24+
fetch-tags: true
25+
token: ${{ secrets.GITHUB_TOKEN }}
2026

2127
- name: Merging migration files
2228
run: cat $(ls -1) > ../migration-output.sql

.github/workflows/publish-nix-pgupgrade-bin-flake-version.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
steps:
1919
- name: Checkout Repo
2020
uses: actions/checkout@v3
21+
with:
22+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
23+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
24+
fetch-depth: 0
25+
fetch-tags: true
26+
token: ${{ secrets.GITHUB_TOKEN }}
2127

2228
- uses: DeterminateSystems/nix-installer-action@main
2329

@@ -37,6 +43,12 @@ jobs:
3743
steps:
3844
- name: Checkout Repo
3945
uses: actions/checkout@v3
46+
with:
47+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
48+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
49+
fetch-depth: 0
50+
fetch-tags: true
51+
token: ${{ secrets.GITHUB_TOKEN }}
4052

4153
- uses: DeterminateSystems/nix-installer-action@main
4254

@@ -89,6 +101,12 @@ jobs:
89101
steps:
90102
- name: Checkout Repo
91103
uses: actions/checkout@v3
104+
with:
105+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
106+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
107+
fetch-depth: 0
108+
fetch-tags: true
109+
token: ${{ secrets.GITHUB_TOKEN }}
92110

93111
- name: Grab release version
94112
id: process_release_version

0 commit comments

Comments
 (0)