diff --git a/.github/workflows/notify-library-release-notes.yaml b/.github/workflows/notify-library-release-notes.yaml new file mode 100644 index 000000000..9ab964fc4 --- /dev/null +++ b/.github/workflows/notify-library-release-notes.yaml @@ -0,0 +1,30 @@ +name: Notify library release notes + +on: + push: + tags: ['v*'] + +jobs: + notify: + if: vars.RELEASE_AUTOMATION == 'true' + runs-on: ubuntu-latest + steps: + - name: Filter pre-release tags + id: filter + run: | + TAG="${{ github.ref_name }}" + if echo "$TAG" | grep -qE '-(rc|alpha|beta)'; then + echo "skip=true" >> "$GITHUB_OUTPUT" + echo "Skipping pre-release tag $TAG" + else + echo "skip=false" >> "$GITHUB_OUTPUT" + fi + + - name: Dispatch to release-notes + if: steps.filter.outputs.skip != 'true' + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.RELEASE_NOTES_GITHUB_TOKEN }} + repository: validmind/release-notes + event-type: library-release-notes + client-payload: '{"tag":"${{ github.ref_name }}"}'