File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,16 @@ permissions:
4
4
contents : read
5
5
6
6
on :
7
+ push :
8
+ branches : [master, develop]
7
9
workflow_dispatch :
8
- schedule :
9
- - cron : ' 0 0,12 * * *'
10
+ inputs :
11
+ branch :
12
+ type : choice
13
+ description : ' Branch to build'
14
+ options : [master, develop]
15
+
16
+ concurrency : ci_build-${{ github.event.inputs.branch || github.ref_name }}
10
17
11
18
jobs :
12
19
ci_builds :
18
25
strategy :
19
26
fail-fast : false
20
27
matrix :
21
- branch : [master, develop]
22
28
keymap : [default, via]
23
29
24
30
container : qmkfm/qmk_cli
30
36
- uses : actions/checkout@v3
31
37
with :
32
38
submodules : recursive
33
- ref : ${{ matrix. branch }}
39
+ ref : ${{ github.event.inputs. branch || github.ref }}
34
40
35
41
- name : Install dependencies
36
42
run : pip3 install -r requirements.txt
50
56
uses : actions/upload-artifact@v3
51
57
if : always()
52
58
with :
53
- name : artifacts-${{ matrix. branch }}-${{ matrix.keymap }}
59
+ name : artifacts-${{ github.event.inputs. branch || github.ref_name }}-${{ matrix.keymap }}
54
60
if-no-files-found : ignore
55
61
path : |
56
62
*.bin
65
71
DISCORD_WEBHOOK : ${{ secrets.CI_DISCORD_WEBHOOK }}
66
72
run : |
67
73
python3 -m pip install -r requirements.txt
68
- python3 ./discord-results.py --branch ${{ matrix. branch }} --keymap ${{ matrix.keymap }} --url ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
74
+ python3 ./discord-results.py --branch ${{ github.event.inputs. branch || github.ref_name }} --keymap ${{ matrix.keymap }} --url ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
You can’t perform that action at this time.
0 commit comments