diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52c0486..f2b5570 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,8 @@ name: Release on: - push: - tags: - - '*' + release: + types: [published] jobs: release: name: Release @@ -22,3 +21,23 @@ jobs: - uses: eskatos/gradle-command-action@v1 with: arguments: gitPublishPush bintrayUpload -PbintrayUsername=${{ secrets.BINTRAY_USER }} -PbintrayApiKey=${{ secrets.BINTRAY_KEY }} -Pversion=${{ steps.version.outputs.tag }} -Prelease=true -Dorg.ajoberstar.grgit.auth.username=${{ secrets.PERSONAL_TOKEN }} --stacktrace + ping: + name: Notify Upstream Repositories + runs-on: ubuntu-latest + needs: [release] + strategy: + matrix: + repository: + - agorapulse/agorapulse-bom + steps: + - uses: actions/checkout@v1 + - name: Semantic Version + id: version + uses: ncipollo/semantic-version-action@v1 + - name: Dispatch to ${{ matrix.repository }} + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.AGORAPULSE_BOT_PERSONAL_TOKEN }} + repository: ${{ matrix.repository }} + event-type: ap-new-version-released-event + client-payload: '{ "group": "com.agorapulse", "module": "notification", "version": "${{ steps.version.outputs.tag }}", "property" : "testing.libraries.version", "github" : ${{ toJson(github) }} }'