|
21 | 21 | matrix_config: ${{ steps.set-matrix.outputs.matrix_config }}
|
22 | 22 | steps:
|
23 | 23 | - uses: DeterminateSystems/nix-installer-action@main
|
24 |
| - - name: Checkout Repo |
25 |
| - 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 }} |
| 24 | + - uses: ./.github/workflows/shared-checkout.yml |
32 | 25 | - name: Generate build matrix
|
33 | 26 | id: set-matrix
|
34 | 27 | run: |
|
|
59 | 52 | outputs:
|
60 | 53 | build_args: ${{ steps.args.outputs.result }}
|
61 | 54 | steps:
|
62 |
| - - 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 }} |
| 55 | + - uses: ./.github/workflows/shared-checkout.yml |
69 | 56 | - uses: DeterminateSystems/nix-installer-action@main
|
70 | 57 | - name: Set PostgreSQL version environment variable
|
71 | 58 | run: echo "POSTGRES_MAJOR_VERSION=${{ matrix.version }}" >> $GITHUB_ENV
|
|
89 | 76 | runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-latest' || 'arm-runner' }}
|
90 | 77 | timeout-minutes: 180
|
91 | 78 | steps:
|
92 |
| - - 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 }} |
| 79 | + - uses: ./.github/workflows/shared-checkout.yml |
99 | 80 | - uses: DeterminateSystems/nix-installer-action@main
|
100 | 81 | - run: docker context create builders
|
101 | 82 | - uses: docker/setup-buildx-action@v3
|
@@ -150,13 +131,7 @@ jobs:
|
150 | 131 | include: ${{ fromJson(needs.prepare.outputs.matrix_config).include }}
|
151 | 132 | runs-on: ubuntu-latest
|
152 | 133 | steps:
|
153 |
| - - 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 }} |
| 134 | + - uses: ./.github/workflows/shared-checkout.yml |
160 | 135 | - uses: DeterminateSystems/nix-installer-action@main
|
161 | 136 | - uses: docker/setup-buildx-action@v3
|
162 | 137 | - uses: docker/login-action@v2
|
@@ -199,13 +174,7 @@ jobs:
|
199 | 174 | needs: [prepare, merge_manifest]
|
200 | 175 | runs-on: ubuntu-latest
|
201 | 176 | steps:
|
202 |
| - - 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 }} |
| 177 | + - uses: ./.github/workflows/shared-checkout.yml |
209 | 178 | - uses: DeterminateSystems/nix-installer-action@main
|
210 | 179 |
|
211 | 180 | - name: Debug Input from Prepare
|
|
0 commit comments