Syncing changes from the other repo. #2
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: 'Submodule Notify Parents' | |
on: | |
push: | |
branches: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
notify: | |
name: 'Submodule Notify Parents' | |
runs-on: ubuntu-latest | |
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: 'Notify Contrib Repository' | |
env: | |
CI_TOKEN: ${{ secrets.CI_TOKEN }} | |
PARENT_REPO: ATTWoWAddon/Contrib | |
PARENT_BRANCH: main | |
WORKFLOW_ID: 67054282 | |
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 }}"}' | |
- name: 'Notify User Repository' | |
env: | |
CI_TOKEN: ${{ secrets.CI_TOKEN }} | |
PARENT_REPO: ATTWoWAddon/User | |
PARENT_BRANCH: main | |
WORKFLOW_ID: 67354347 | |
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 }}"}' |