-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (45 loc) · 1.32 KB
/
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
name: Update Metapackages
on:
push:
branches:
- mantic
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:rolling
steps:
# We need git to checkout the metapackages repository with git so keep it above
- name: Install dependencies
shell: bash
run: |
export DEBIAN_FRONTEND=noninteractive
apt-get -qq update
apt-get -qq install tzdata git devscripts debootstrap germinate
- name: Checkout seeds
uses: actions/checkout@v2
- name: Checkout metapackages
uses: actions/checkout@v2
with:
repository: Ubuntu-Sway/ubuntu-sway-meta
path: ubuntu-sway-meta
token: "${{ secrets.GIT_USER_TOKEN }}"
ref: mantic
- name: Update metapackages
shell: bash
env:
BRANCH: mantic
run: |
cd ubuntu-sway-meta
./update
if git diff --quiet ; then
echo "Everything is up-to-date, nothing to commit"
else
git config --global user.email "[email protected]"
git config --global user.name "github-actions"
echo "Committing new changes"
git add .
git commit -m "Automatic update via Ubuntu Sway Remix seeds"
git push origin "$BRANCH"
echo "Push complete"
fi