-
-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (40 loc) · 1.01 KB
/
archive.yml
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
43
44
45
46
47
48
49
name: Archive
on:
workflow_run:
workflows: ["Build"]
types:
- completed
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: jcs090218/setup-emacs@master
with:
version: 29.4
- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'
- uses: actions/checkout@v4
- name: Generate archive.json file
run: make generate_archive_json
- name: Set git config
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Commit generated archive.json
continue-on-error: true
run: |
git pull --rebase --autostash
git add .
git commit -m "Update archive.json"
- name: Push updated data
continue-on-error: true
uses: jcs090218/github-push-action@master
with:
branch: master
rebase: true
retry: 3