Skip to content

Commit

Permalink
ci: make zip artifacts deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
khmm12 committed Dec 14, 2023
1 parent d9056db commit f29d82e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # It's needed for git-restore-mtime
- name: Reset directories timestamp # Workaround for https://github.com/MestreLion/git-tools/issues/47
run: find . -not -path '*/.*' -type d -exec touch -t 197001010000 {} \;
- name: Restore files timestamp
uses: chetan/git-restore-mtime-action@v2 # Restore files original modification time to have deterministic zip bundles
- name: "Bundle OCBundle"
working-directory: ./Sources/OCBundle
run: zip -qqrX ../../OCBundle.zip ./
Expand Down

0 comments on commit f29d82e

Please sign in to comment.