From 819d87b8a0d8d335268b6c463270a2e461e73e10 Mon Sep 17 00:00:00 2001 From: Crieve Date: Thu, 7 Nov 2024 00:29:02 -0700 Subject: [PATCH] Updated the Notify Parent Repositories job. --- ...repos.yml => Notify Parent Repositories.yml} | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) rename .github/workflows/{notify_parent_repos.yml => Notify Parent Repositories.yml} (56%) diff --git a/.github/workflows/notify_parent_repos.yml b/.github/workflows/Notify Parent Repositories.yml similarity index 56% rename from .github/workflows/notify_parent_repos.yml rename to .github/workflows/Notify Parent Repositories.yml index c825324..19eab0c 100644 --- a/.github/workflows/notify_parent_repos.yml +++ b/.github/workflows/Notify Parent Repositories.yml @@ -1,16 +1,16 @@ -name: 'Submodule Notify Parents' +name: 'Notify Parent Repositories' on: push: branches: - - main + - main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: jobs: notify: - name: 'Submodule Notify Parents' + name: 'Notify Parent Repositories' runs-on: ubuntu-latest # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest @@ -24,15 +24,6 @@ jobs: 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 + WORKFLOW_ID: 126651161 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 }}"}'