summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDimitris Mantzouranis <d3xter93@gmail.com>2022-01-24 00:02:56 +0200
committerdexter93 <d3xter93@gmail.com>2022-01-24 00:06:43 +0200
commitcf43b701100177f1be5b95db109d5f81fd373d96 (patch)
tree6ee68ebd01bb767a33ecab5d27ad8aeada89a2ee /.github/workflows
parent48f9cd2a961c1fee3716b9b72b4eb6f221dcf6d5 (diff)
[CI] automate openrgb updates
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/openrgb_update.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/openrgb_update.yml b/.github/workflows/openrgb_update.yml
new file mode 100644
index 000000000..5c486e8b5
--- /dev/null
+++ b/.github/workflows/openrgb_update.yml
@@ -0,0 +1,37 @@
+name: Update sn32_master_openrgb after sn32_master merge
+
+on:
+ push:
+ branches:
+ - sn32_master
+
+
+jobs:
+ develop_update:
+ runs-on: ubuntu-latest
+
+ if: github.repository == 'SonixQMK/qmk_firmware'
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Checkout develop
+ run: |
+ git fetch origin sn32_master sn32_master_openrgb
+ git checkout sn32_master_openrgb
+
+ - name: Check if branch locked
+ id: check_locked
+ uses: andstor/file-existence-action@v1
+ with:
+ files: ".locked"
+
+ - name: Update openrgb from master
+ if: steps.check_locked.outputs.files_exists == 'false'
+ run: |
+ git config --global user.name "github-actions[bot]"
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
+ git merge origin/sn32_master
+ git push origin sn32_master_openrgb \ No newline at end of file