Skip to content

Commit a8278ac

Browse files
committed
feat: upload checked out code and download to use between workflows
1 parent e65c081 commit a8278ac

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/nix-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
runs-on: ${{ matrix.runner }}
3232
timeout-minutes: 180
3333
steps:
34+
- name: Download repository
35+
uses: actions/download-artifact@v4
36+
with:
37+
name: repository
38+
path: .
39+
3440
- name: aws-creds
3541
uses: aws-actions/configure-aws-credentials@v4
3642
with:

.github/workflows/shared-checkout.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
checkout:
99
runs-on: ubuntu-latest
10+
outputs:
11+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
12+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
1013
steps:
1114
- name: Checkout repository
1215
uses: actions/checkout@v4
@@ -15,4 +18,11 @@ jobs:
1518
ref: ${{ github.event.pull_request.head.sha || github.sha }}
1619
fetch-depth: 0
1720
fetch-tags: true
18-
token: ${{ secrets.GITHUB_TOKEN }}
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
23+
- name: Upload repository
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: repository
27+
path: .
28+
retention-days: 1

0 commit comments

Comments
 (0)