-
Notifications
You must be signed in to change notification settings - Fork 67
35 lines (29 loc) · 1.39 KB
/
deps.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
name: "Update dependencies"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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" | jq -r '[.[] | select(.tag_name | contains("nightly") | not)][0] | .assets[] | select(.content_type == "application/x-xz") | .browser_download_url')'^g' .env
sed -i 's^https://github.com/Maximus5/ConEmu/releases/.*.7z^'$(curl --silent "https://api.github.com/repos/Maximus5/ConEmu/releases/latest" | jq -r '.assets[] | select(.content_type == "application/octet-stream") | .browser_download_url')'^g' .env
sed -i 's^QMK_CLI_VER=.*^QMK_CLI_VER="'$(curl --silent "https://api.github.com/repos/qmk/qmk_cli/tags" | jq -r '.[0].name')'"^g' .env
- name: Become QMK Bot
run: |
git config user.name 'QMK Bot'
git config user.email 'hello@qmk.fm'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.QMK_BOT_TOKEN }}
base: main
delete-branch: true
author: QMK Bot <hello@qmk.fm>
committer: QMK Bot <hello@qmk.fm>
commit-message: Update latest dependencies
title: '[CI] Update latest dependencies'