Skip to content

Commit

Permalink
Merge pull request #7 from zvecr/auto_dep
Browse files Browse the repository at this point in the history
Periodically update MSYS base
  • Loading branch information
zvecr authored Dec 25, 2020
2 parents 9ab03b6 + fde20d1 commit 8371e51
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
shell: bash
run: |
curl -L -O https://github.com/msys2/msys2-installer/releases/download/2020-11-09/msys2-base-x86_64-20201109.tar.xz
tar -xvf msys2-base-x86_64-20201109.tar.xz --one-top-level=.build
tar -xvf msys2-base-x86_64-*.tar.xz --one-top-level=.build
- name: Update MSYS
run: |
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/deps.yml
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'

0 comments on commit 8371e51

Please sign in to comment.