Skip to content

BlankOn Live Build #381

BlankOn Live Build

BlankOn Live Build #381

Workflow file for this run

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