Skip to content

Commit

Permalink
Auto update QMK
Browse files Browse the repository at this point in the history
  • Loading branch information
kip93 committed Mar 3, 2022
1 parent 95f3fc2 commit 6652808
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update QMK

on:
schedule: [ { cron: "42 */4 * * *" } ]
workflow_dispatch: {}

concurrency:
group: update

jobs:
update:
name: Update QMK
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with: { ref: "develop" }

- name: Update
run: |
git submodule update --init --remote QMK
- name: Commit
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin "https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}"
git commit -am "Update QMK - [GitHub Action]" && git push || true

0 comments on commit 6652808

Please sign in to comment.