forked from benhutchins/docker-mediawiki
-
Notifications
You must be signed in to change notification settings - Fork 133
29 lines (27 loc) · 952 Bytes
/
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
name: Update
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
container: debian:bookworm
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Install dependencies
run: |
apt-get update && apt-get install --yes --no-install-recommends python3 git gh ca-certificates
- uses: actions/checkout@v4
- name: Run update
run: |
# without re-setting the safe.directory config options all git
# commands error out, even though this should be already be set by
# actions/checkout.
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global user.email "[email protected]"
git config --global user.name "Cool updating bot"
gh repo set-default wikimedia/mediawiki-docker
git checkout -b auto-update
./update.py --commit --pr