Trigger Resume Render #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow triggers a build of a private resume data repo | |
name: Trigger Resume Render | |
# Controls when the action will run. | |
on: | |
workflow_run: | |
workflows: ["Build and Test"] | |
branches: [main] | |
types: | |
- completed | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# Only trigger a build of the resume of the generator tests pass | |
# https://github.community/t/workflow-run-completed-event-triggered-by-failed-workflow/128001 | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Trigger render | |
run: | | |
curl \ | |
-X POST \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/repos/${{ secrets.RESUME_REPO }}/dispatches \ | |
-d '{"event_type":"repository_dispatch"}' \ | |
-H "Authorization: token ${{ secrets.API_TOKEN }}" |