-
-
Notifications
You must be signed in to change notification settings - Fork 6
169 lines (132 loc) · 4.45 KB
/
webradioFromIssue.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
name: webradioFromIssue
on:
issues:
types: [labeled]
jobs:
addradio:
if: ${{ github.event.label.name == 'MergeNewWebradio' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -y --no-install-recommends imagemagick
- uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/add-webradio.yml
- name: Creating webradio m3u
run: |
cat > issue.json << EOL
${{ steps.issue-parser.outputs.jsonString }}
EOL
./build.sh add_radio_from_json issue.json
rm issue.json
- name: Add, commit and push
uses: EndBug/add-and-commit@v9.1.4
with:
add: sources docs/db
message: "webradioFromIssue - addradio #${{ github.event.issue.number }}"
push: true
- uses: peter-evans/close-issue@v3
with:
comment: Merged!
modifyradio:
if: ${{ github.event.label.name == 'MergeModifyWebradio' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/modify-webradio.yml
- name: Modifying webradio m3u
run: |
cat > issue.json << EOL
${{ steps.issue-parser.outputs.jsonString }}
EOL
./build.sh modify_radio_from_json issue.json
rm issue.json
- name: Add, commit and push
uses: EndBug/add-and-commit@v9.1.4
with:
add: sources docs/db mappings
message: "webradioFromIssue - modifyradio #${{ github.event.issue.number }}"
push: true
- uses: peter-evans/close-issue@v3
with:
comment: Merged!
deleteradio:
if: ${{ github.event.label.name == 'MergeDeleteWebradio' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/delete-webradio.yml
- name: Deleting webradio m3u
run: |
cat > issue.json << EOL
${{ steps.issue-parser.outputs.jsonString }}
EOL
./build.sh delete_radio_from_json issue.json
rm issue.json
- name: Add, commit and push
uses: EndBug/add-and-commit@v9.1.4
with:
add: sources docs/db mappings trash
message: "webradioFromIssue - deleteradio #${{ github.event.issue.number }}"
push: true
- uses: peter-evans/close-issue@v3
with:
comment: Merged!
addAlternateStream:
if: ${{ github.event.label.name == 'MergeAddAlternateStream' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/add-alternate-stream.yml
- name: Add alternate stream
run: |
cat > issue.json << EOL
${{ steps.issue-parser.outputs.jsonString }}
EOL
./build.sh add_alternate_stream_from_json issue.json
rm issue.json
- name: Add, commit and push
uses: EndBug/add-and-commit@v9.1.4
with:
add: sources docs/db
message: "webradioFromIssue - addAlternateStream #${{ github.event.issue.number }}"
push: true
- uses: peter-evans/close-issue@v3
with:
comment: Merged!
deleteAlternateStream:
if: ${{ github.event.label.name == 'MergeDeleteAlternateStream' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/delete-alternate-stream.yml
- name: Delete alternate stream
run: |
cat > issue.json << EOL
${{ steps.issue-parser.outputs.jsonString }}
EOL
./build.sh delete_alternate_stream_from_json issue.json
rm issue.json
- name: Add, commit and push
uses: EndBug/add-and-commit@v9.1.4
with:
add: sources docs/db
message: "webradioFromIssue - deleteAlternateStream #${{ github.event.issue.number }}"
push: true
- uses: peter-evans/close-issue@v3
with:
comment: Merged!