Skip to content

Deploy Site

Deploy Site #93

Workflow file for this run

name: Deploy Site
on:
workflow_run:
workflows: ["Update Data"]
types:
- completed
workflow_dispatch:
jobs:
trigger:
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
# needs: process
runs-on: ubuntu-latest
timeout-minutes: 5
env:
USER: ${{ github.repository_owner }}
# REPO_NAME: ${{ github.event.repository.name }}
REPO_NAME: "${{ secrets.REPO_DEPLOY }}"
steps:
- name: Trigger workflow
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_ACTION }}
REPO: ${{ env.USER }}/${{ env.REPO_NAME }}
EVENT_TYPE: "deploy-event"
run: |
echo "repo $REPO"
gh api --method POST /repos/${REPO}/dispatches -f "event_type=${EVENT_TYPE}"