Skip to content

Commit

Permalink
Set git config user information in update workflow
Browse files Browse the repository at this point in the history
And also allow it to be triggered manually.
  • Loading branch information
legoktm committed Mar 29, 2024
1 parent 28d34a7 commit 9c93d00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Update
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
update:
Expand All @@ -21,6 +22,8 @@ jobs:
# 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 "cool-updating-bot@mediawiki.org"
git config --global user.name "Cool updating bot"
gh repo set-default wikimedia/mediawiki-docker
git checkout -b auto-update
./update.py --commit --pr

0 comments on commit 9c93d00

Please sign in to comment.