-
-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (58 loc) · 1.27 KB
/
snap_update.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Snap Update
on:
push:
branches:
- master
paths:
- '**.el'
- '**.yml'
- 'snap/**'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
workflow_run:
workflows: ["checksum"]
types:
- completed
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: jcs090218/setup-emacs@master
with:
version: 29.4
- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'
- name: Update snapcraft.yaml
run: |
eask install-deps
eask run script snap-update
- name: Set git config
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Commit
continue-on-error: true
run: |
git pull
git add .
git commit -m "Update Snap snapcraft.yaml"
- name: Push updated bucket
continue-on-error: true
uses: jcs090218/github-push-action@master
with:
branch: master
rebase: true
retry: 7