-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 1.02 KB
/
bump.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
name: Bump
on:
schedule:
# Run every day at 3:20
- cron: '20 3 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Bump versions via the AUR
run: ./bump-versions
- name: Bump derived info
run: >
docker run
--rm
--env BUILDER_UID=$(id -u)
--env BUILDER_GID=$(id -g)
--mount type=bind,src="$PWD",dst="/src/${{ github.repository }}"
--workdir "/src/${{ github.repository }}"
--entrypoint "/src/${{ github.repository }}/with-builder-user"
archlinux:base-devel
./bump-derived
- name: Set up Git config
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit updates
run: |
git add -A
git commit -m "Bump packages ($(date '+%Y-%m-%d-%H-%M'))" || true
- name: Push updates
run: git push