fix: add missing params to the error utils definitions (#326) #4
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
name: Trigger CI Workflow In Template Repo | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- template/** | |
- deploy/digital-ocean-apps/** | |
workflow_dispatch: | |
env: | |
OWNER: paralect | |
REPO: ship-template-ci-cd | |
WORKFLOW: update-template.yml | |
jobs: | |
trigger-workflow: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate GitHub App Token | |
id: generate-token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.PRIVATE_KEY }} | |
repositories: ${{ env.REPO }} | |
- name: Send Dispatch Event | |
run: | | |
curl -X POST \ | |
-H "Accept: application/vnd.github.everest-preview+json" \ | |
-H "Authorization: Bearer ${{ steps.generate-token.outputs.token }}" \ | |
https://api.github.com/repos/${{ env.OWNER }}/${{ env.REPO }}/actions/workflows/${{ env.WORKFLOW }}/dispatches \ | |
-d '{"ref": "main"}' |