Skip to content

Commit

Permalink
Updated the Notify Parent Repositories job.
Browse files Browse the repository at this point in the history
  • Loading branch information
DFortun81 committed Nov 7, 2024
1 parent ec4150c commit 819d87b
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 }}"}'

0 comments on commit 819d87b

Please sign in to comment.