Skip to content

Commit 06a35b6

Browse files
committed
Set SOURCE_DATE_EPOCH to time of last commit
https://reproducible-builds.org/docs/source-date-epoch/
1 parent 3e2ccad commit 06a35b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
with:
1313
submodules: recursive
1414
persist-credentials: false
15+
- name: Set SOURCE_DATE_EPOCH
16+
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> "$GITHUB_ENV"
1517
- name: Install Node.js
1618
uses: actions/setup-node@v4
1719
with:
@@ -46,6 +48,8 @@ jobs:
4648
with:
4749
submodules: recursive
4850
persist-credentials: false
51+
- name: Set SOURCE_DATE_EPOCH
52+
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> "$GITHUB_ENV"
4953
- name: Install Node.js
5054
uses: actions/setup-node@v4
5155
with:
@@ -91,6 +95,9 @@ jobs:
9195
run: |
9296
Copy-Item -Path repo -Destination D:\repo -Recurse
9397
Remove-Item -Path repo -Recurse -Force
98+
- name: Set SOURCE_DATE_EPOCH
99+
working-directory: D:\repo
100+
run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> "$env:GITHUB_ENV"
94101
- name: Install Node.js
95102
uses: actions/setup-node@v4
96103
with:

0 commit comments

Comments
 (0)