diff --git a/.github/workflows/notify-downstream.yml b/.github/workflows/notify-downstream.yml deleted file mode 100644 index 031a3e0..0000000 --- a/.github/workflows/notify-downstream.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Notify Downstream Repos - -on: - release: - types: [published] - -jobs: - notify: - runs-on: ubuntu-latest - steps: - - name: Trigger omni-agent-skills sync - uses: peter-evans/repository-dispatch@v3 - with: - token: ${{ secrets.SKILLS_REPO_TOKEN }} - repository: exploreomni/omni-agent-skills - event-type: cli-update - client-payload: >- - { - "release_tag": "${{ github.event.release.tag_name }}", - "release_url": "${{ github.event.release.html_url }}", - "commit_sha": "${{ github.sha }}" - } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1692f1b..f43ae1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,3 +52,17 @@ jobs: git diff --cached --quiet && exit 0 git commit -m "Brew formula update for omni version ${GITHUB_REF_NAME}" git push origin HEAD:main + + - name: Notify omni-agent-skills + if: ${{ !contains(github.ref_name, '-') }} + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.SKILLS_REPO_TOKEN }} + repository: exploreomni/omni-agent-skills + event-type: cli-update + client-payload: >- + { + "release_tag": "${{ github.ref_name }}", + "release_url": "${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.ref_name }}", + "commit_sha": "${{ github.sha }}" + }