Skip to content

My-tmp-workflow

My-tmp-workflow #10

Workflow file for this run

name: My-tmp-workflow
on:
# push:
# branches:
# - main
workflow_dispatch:
jobs:
trigger-sync:
runs-on: ubuntu-latest
steps:
- name: Print secrets
shell: bash
env:
MY_REMOTE_REPO: ${{ secrets.REMOTE_REPO }}
MY_REMOTE_OWNER: ${{ secrets.REMOTE_OWNER }}
run: |
echo "01 secret remote repo $MY_REMOTE_REPO for $MY_REMOTE_OWNER"
echo "02 secret remote repo $REMOTE_REPO for $REMOTE_OWNER"
- name: Trigger sync workflow
shell: bash
run: |
curl -X POST \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token $PAT" \
https://api.github.com/repos/$REMOTE_OWNER/$REMOTE_REPO/dispatches \
-d '{"event_type":"sync-request"}'