-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (34 loc) · 1.14 KB
/
isoworker.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
name: BlankOn Live Build
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
# UTC Timezone
- cron: '0 9 * * *'
jobs:
tendang:
name: Tendang isoworker
runs-on: ubuntu-latest
steps:
- name: Set VALUE for !Pull Request
if: ${{ github.event_name != 'pull_request' }}
shell: bash
run: echo "VALUE=${{ github.repository_owner }}_${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Set VALUE for Pull Request
if: ${{ github.event_name == 'pull_request' }}
shell: bash
run: echo "VALUE=blankon_${{ github.head_ref }}" >> $GITHUB_ENV
- name: Set VALUE for Schedule
if: ${{ github.event_name == 'schedule' }}
shell: bash
run: echo "VALUE=blankon_master" >> $GITHUB_ENV
- name: Trigger tendang
env:
TENDANG_TOKEN: ${{ secrets.LB_TENDANG_TOKEN }}
run: |
curl --header "Content-Type: application/json" \
--request POST \
--data "{\"name\":\"isoworker\",\"value\":\""$VALUE"\", \"token\": \""$TENDANG_TOKEN"\"}" \
https://tendang.blankonlinux.or.id --fail