Skip to content

main

main #32938

Workflow file for this run

name: main
# Run hourly
on:
workflow_dispatch:
inputs:
schedule:
- cron: "0 * * * *"
jobs:
run-buildapp:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
name: Run App Builder
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: '1'
- name: Run buildapp
uses: ./.github/actions/run-buildapp
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_APP_ID: ${{ secrets.NETLIFY_APP_ID }}
with:
buildapp-command: '${GITHUB_WORKSPACE}/src/buildapp.sh'
- name: Git Push
uses: ./.github/actions/git-push
with:
push-dir: 'docs'
- name: Failure Notification
if: failure()
run: |
curl --request POST \
--url https://api.github.com/repos/${{ github.repository }}/issues \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
--data '{
"title": "GitHub Action FAILED",
"body": "This is an automated issue. See repo actions for details."
}'