-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.03 KB
/
update_tarballs.yaml
File metadata and controls
42 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Update Tarballs
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
# git-restore-mtime-bare uses the ref log to find the correct timestamp
# for each file. This requires a full git history. The default value (1)
# creates a shallow checkout.
fetch-depth: 0
# Fix timestamps
- name: Restore timestamps
uses: chetan/git-restore-mtime-action@v2
- name: Regenerate all tarballs
run: make all
- name: Commit and push changes if there are any
run: |
git add -f tarballs/
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
if [ -n "$(git status --porcelain)" ]; then
git commit -m 'Update Tarballs'
git push
else
echo "No changes to commit"
fi