Skip to content

Merge pull request #80 from day-23/dev #142

Merge pull request #80 from day-23/dev

Merge pull request #80 from day-23/dev #142

Workflow file for this run

name: sync-notify
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
notify:
name: 'sync-notify'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Github REST API Call
env:
CI_TOKEN: ${{ secrets.CI_TOKEN }}
PARENT_REPO: day-23/haru
PARENT_BRANCH: main
WORKFLOW_ID: ${{ secrets.WORKFLOW_ID }}
run: |
curl -fL --retry 3 -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${{ env.CI_TOKEN }}" https://api.github.com/repos/${{ env.PARENT_REPO }}/actions/workflows/${{ env.WORKFLOW_ID }}/dispatches -d '{"ref":"${{ env.PARENT_BRANCH }}"}'