-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from zvecr/auto_dep
Periodically update MSYS base
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "Update latest msys base" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
pull_request: | ||
paths: | ||
- '.github/workflows/deps.yml' | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
|
||
- name: Update to latest | ||
run: | | ||
sed -i 's^https://github.com/msys2/msys2-installer/releases/.*.tar.xz^'$(curl --silent "https://api.github.com/repos/msys2/msys2-installer/releases/latest" | jq -r '.assets[] | select(.content_type == "application/x-xz") | .browser_download_url')'^g' .github/workflows/build.yml | ||
- name: Become QMK Bot | ||
run: | | ||
git config user.name 'QMK Bot' | ||
git config user.email '[email protected]' | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
base: main | ||
delete-branch: true | ||
author: QMK Bot <[email protected]> | ||
committer: QMK Bot <[email protected]> | ||
commit-message: Update latest msys base | ||
title: '[CI] Update latest msys base' |