Merge pull request #20 from microsoft/coc-updates-promoted-folder #20
Workflow file for this run
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: Publish updated templates to Microsoft systems | |
on: | |
push: | |
repository_dispatch: | |
workflow_dispatch: | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Notify internal systems to use updated templates | |
run: | | |
curl -H "Accept: application/vnd.github.everest-preview+json" \ | |
-H "Authorization: token ${{ secrets.REPO_TEMPLATES_OSS_WORKFLOW_DISPATCH }}" \ | |
--request POST \ | |
--data '{"event_type": "rebuild-microsoft-oss-templates", "client_payload": {"repository":"microsoft/repo-templates"}}' \ | |
https://api.github.com/repos/${{ secrets.INTERNAL_EMU_OSSMGMT_REPOSITORY_NAME }}/dispatches |