From 966d905113965feae6065e213da7833d7ca333d5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:43:58 +0000 Subject: [PATCH 1/9] chore(ci): bump sarisia/actions-status-discord from 1.13.0 to 1.16.0 Bumps [sarisia/actions-status-discord](https://github.com/sarisia/actions-status-discord) from 1.13.0 to 1.16.0. - [Release notes](https://github.com/sarisia/actions-status-discord/releases) - [Commits](https://github.com/sarisia/actions-status-discord/compare/v1.13.0...v1.16.0) --- updated-dependencies: - dependency-name: sarisia/actions-status-discord dependency-version: 1.16.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/release_notice.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release_notice.yml b/.github/workflows/release_notice.yml index e17315a01..aeb1f1f18 100644 --- a/.github/workflows/release_notice.yml +++ b/.github/workflows/release_notice.yml @@ -28,7 +28,7 @@ jobs: env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE }} - name: Send custom JSON data to Discord - uses: sarisia/actions-status-discord@v1.13.0 + uses: sarisia/actions-status-discord@v1.16.0 with: webhook: ${{ secrets.DISCORD_WEBHOOK_URL }} nodetail: true From 6d68090dc8bf4c1557743190de930308fc0464b6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:44:03 +0000 Subject: [PATCH 2/9] chore(ci): bump slackapi/slack-github-action from 1.23.0 to 4.0.0 Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.23.0 to 4.0.0. - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Changelog](https://github.com/slackapi/slack-github-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/slackapi/slack-github-action/compare/v1.23.0...v4.0.0) --- updated-dependencies: - dependency-name: slackapi/slack-github-action dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/release_notice.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release_notice.yml b/.github/workflows/release_notice.yml index e17315a01..42f9fed3a 100644 --- a/.github/workflows/release_notice.yml +++ b/.github/workflows/release_notice.yml @@ -14,7 +14,7 @@ jobs: run: echo "$GITHUB_CONTEXT" - name: Send custom JSON data to Slack workflow id: slack - uses: slackapi/slack-github-action@v1.23.0 + uses: slackapi/slack-github-action@v4.0.0 with: # This data can be any valid JSON from a previous step in the GitHub Action payload: | From 2572e755a7391d5aaaddb89dd692e9687735b4fa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:44:06 +0000 Subject: [PATCH 3/9] chore(ci): bump gradle/wrapper-validation-action from 2 to 3 Bumps [gradle/wrapper-validation-action](https://github.com/gradle/wrapper-validation-action) from 2 to 3. - [Release notes](https://github.com/gradle/wrapper-validation-action/releases) - [Commits](https://github.com/gradle/wrapper-validation-action/compare/v2...v3) --- updated-dependencies: - dependency-name: gradle/wrapper-validation-action dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/validate_gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate_gradle.yml b/.github/workflows/validate_gradle.yml index 1e9c6465d..7f9cf22c8 100644 --- a/.github/workflows/validate_gradle.yml +++ b/.github/workflows/validate_gradle.yml @@ -16,4 +16,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: gradle/wrapper-validation-action@v2 + - uses: gradle/wrapper-validation-action@v3 From ecdd0cba7bb56be3bf7f27caf9f0ffbf7e20533f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:44:13 +0000 Subject: [PATCH 4/9] chore(ci): bump actions/dependency-review-action from 4 to 5 Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 4 to 5. - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](https://github.com/actions/dependency-review-action/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/dependency-review-action dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/dependency-security.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dependency-security.yml b/.github/workflows/dependency-security.yml index 6bb2b948f..299c255a0 100644 --- a/.github/workflows/dependency-security.yml +++ b/.github/workflows/dependency-security.yml @@ -175,7 +175,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Fail the PR on newly introduced vulnerable dependencies - uses: actions/dependency-review-action@v4 + uses: actions/dependency-review-action@v5 with: fail-on-severity: low comment-summary-in-pr: on-failure From 82bdc75058b0ffe2ac174025f87261bfc94d5052 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:44:16 +0000 Subject: [PATCH 5/9] chore(ci): bump actions/github-script from 7 to 9 Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 9. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v7...v9) --- updated-dependencies: - dependency-name: actions/github-script dependency-version: '9' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/coverage.yml | 2 +- .github/workflows/dependency-security.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ff34f30af..3e166662e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -104,7 +104,7 @@ jobs: # pull-requests: write. - name: Comment the report on the pull request if: always() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository - uses: actions/github-script@v7 + uses: actions/github-script@v9 with: script: | const fs = require('fs'); diff --git a/.github/workflows/dependency-security.yml b/.github/workflows/dependency-security.yml index 6bb2b948f..aaef02bc1 100644 --- a/.github/workflows/dependency-security.yml +++ b/.github/workflows/dependency-security.yml @@ -79,7 +79,7 @@ jobs: # instead of adding a new one on every push. - name: Comment scan result on the pull request if: always() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository - uses: actions/github-script@v7 + uses: actions/github-script@v9 with: script: | const fs = require('fs'); From 3366dead8118d8ce63b11871665cdaa5c21a9fc2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:44:52 +0000 Subject: [PATCH 6/9] chore(deps): bump junit:junit from 4.13.1 to 4.13.2 Bumps [junit:junit](https://github.com/junit-team/junit4) from 4.13.1 to 4.13.2. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md) - [Commits](https://github.com/junit-team/junit4/compare/r4.13.1...r4.13.2) --- updated-dependencies: - dependency-name: junit:junit dependency-version: 4.13.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- sdk-java-ui/build.gradle | 2 +- sdk-java/build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk-java-ui/build.gradle b/sdk-java-ui/build.gradle index 5d0a2ad9e..9c88c2ddf 100644 --- a/sdk-java-ui/build.gradle +++ b/sdk-java-ui/build.gradle @@ -64,7 +64,7 @@ dependencies { implementation 'org.json:json:20250517' - testImplementation 'junit:junit:4.13.1' + testImplementation 'junit:junit:4.13.2' testImplementation 'org.mockito:mockito-core:4.11.0' } diff --git a/sdk-java/build.gradle b/sdk-java/build.gradle index 365bf0758..2473ff633 100644 --- a/sdk-java/build.gradle +++ b/sdk-java/build.gradle @@ -14,7 +14,7 @@ dependencies { implementation 'org.json:json:20250517' implementation 'com.google.code.findbugs:jsr305:3.0.2' - testImplementation 'junit:junit:4.13.1' + testImplementation 'junit:junit:4.13.2' testImplementation 'org.mockito:mockito-core:4.11.0' //testImplementation 'com.squareup.okhttp3:mockwebserver:3.7.0' } From bfb6389bb28f3d14d90b3ffc02aa746cb313bc27 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 10:49:00 +0000 Subject: [PATCH 7/9] chore(deps): bump org.json:json from 20250517 to 20260814 Bumps [org.json:json](https://github.com/douglascrockford/JSON-java) from 20250517 to 20260814. - [Release notes](https://github.com/douglascrockford/JSON-java/releases) - [Changelog](https://github.com/stleary/JSON-java/blob/master/docs/RELEASES.md) - [Commits](https://github.com/douglascrockford/JSON-java/compare/20250517...20260814) --- updated-dependencies: - dependency-name: org.json:json dependency-version: '20260814' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- app-java/build.gradle | 2 +- app-javafx/build.gradle | 2 +- sdk-java-ui/build.gradle | 2 +- sdk-java/build.gradle | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app-java/build.gradle b/app-java/build.gradle index 7b39c889a..1de384cec 100644 --- a/app-java/build.gradle +++ b/app-java/build.gradle @@ -9,7 +9,7 @@ repositories { } dependencies { - implementation 'org.json:json:20250517' + implementation 'org.json:json:20260814' implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(path: ':sdk-java') diff --git a/app-javafx/build.gradle b/app-javafx/build.gradle index fe048f2d7..c6613abfb 100644 --- a/app-javafx/build.gradle +++ b/app-javafx/build.gradle @@ -26,7 +26,7 @@ dependencies { // org.json is used by the demo for pretty-printing widget data; the // SDK also uses it internally (and exposes JSONObject in its API). - implementation 'org.json:json:20250517' + implementation 'org.json:json:20260814' } application { diff --git a/sdk-java-ui/build.gradle b/sdk-java-ui/build.gradle index 9c88c2ddf..6f11bc4f2 100644 --- a/sdk-java-ui/build.gradle +++ b/sdk-java-ui/build.gradle @@ -62,7 +62,7 @@ dependencies { // appear in this package's public signatures. api project(':sdk-java') - implementation 'org.json:json:20250517' + implementation 'org.json:json:20260814' testImplementation 'junit:junit:4.13.2' testImplementation 'org.mockito:mockito-core:4.11.0' diff --git a/sdk-java/build.gradle b/sdk-java/build.gradle index 2473ff633..fc64a858f 100644 --- a/sdk-java/build.gradle +++ b/sdk-java/build.gradle @@ -11,7 +11,7 @@ java { } dependencies { - implementation 'org.json:json:20250517' + implementation 'org.json:json:20260814' implementation 'com.google.code.findbugs:jsr305:3.0.2' testImplementation 'junit:junit:4.13.2' From 7df8d274db1a16340bd5a8b4afd1329fd375ecbe Mon Sep 17 00:00:00 2001 From: Arif Burak Demiray Date: Fri, 11 Sep 2026 14:10:39 +0300 Subject: [PATCH 8/9] feat: new env var getting way --- .github/workflows/release_notice.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_notice.yml b/.github/workflows/release_notice.yml index 42f9fed3a..87ac00aaf 100644 --- a/.github/workflows/release_notice.yml +++ b/.github/workflows/release_notice.yml @@ -16,6 +16,8 @@ jobs: id: slack uses: slackapi/slack-github-action@v4.0.0 with: + webhook: ${{ secrets.SLACK_RELEASE }} + webhook-type: webhook-trigger # This data can be any valid JSON from a previous step in the GitHub Action payload: | { @@ -25,8 +27,6 @@ jobs: "body": ${{ toJSON(github.event.release.body) }}, "html_url": "${{ github.event.release.html_url }}" } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE }} - name: Send custom JSON data to Discord uses: sarisia/actions-status-discord@v1.13.0 with: From 6edf7f748ae56847ddfbcaf2eeeb3144f8af5d3a Mon Sep 17 00:00:00 2001 From: turtledreams <62231246+turtledreams@users.noreply.github.com> Date: Wed, 30 Sep 2026 01:54:37 +0900 Subject: [PATCH 9/9] workflow pass --- .github/workflows/release.yml | 244 ++++++++++++++++++++++++++++++++++ 1 file changed, 244 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..d95216c38 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,244 @@ +name: Release + +on: + release: + types: [published] + workflow_dispatch: + inputs: + target: + description: "production publishes to maven.countly.com; test is a dry run against maven-test.countly.com" + type: choice + options: [production, test] + default: production + +permissions: {} + +concurrency: + group: maven-publish + cancel-in-progress: false + queue: max + +env: + TAG: ${{ github.ref_name }} + TARGET: ${{ inputs.target || 'production' }} + +jobs: + plan: + name: Plan and check + runs-on: ubuntu-24.04 + permissions: + contents: read + checks: read + outputs: + environment: ${{ steps.plan.outputs.environment }} + check_tasks: ${{ steps.plan.outputs.check_tasks }} + publish_tasks: ${{ steps.plan.outputs.publish_tasks }} + published_modules: ${{ steps.plan.outputs.published_modules }} + steps: + - name: Only tags can be released + if: github.ref_type != 'tag' + run: | + echo "::error::Run the release workflow on a tag, not on a branch." + exit 1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + persist-credentials: false + - name: Read the GitHub release + id: release + if: env.TARGET == 'production' + env: + GH_TOKEN: ${{ github.token }} + run: | + prerelease=$(gh release view "$TAG" --repo "$GITHUB_REPOSITORY" --json isPrerelease --jq .isPrerelease) + echo "prerelease=$prerelease" >> "$GITHUB_OUTPUT" + - name: Plan + id: plan + run: python3 .github/release/release.py plan --tag "$TAG" --target "$TARGET" --commit "$GITHUB_SHA" --prerelease "${{ steps.release.outputs.prerelease || 'unknown' }}" --out plan.json + - name: The tag commit is on the release branch + if: env.TARGET == 'production' + run: python3 .github/release/release.py check-branch --plan plan.json --commit "$GITHUB_SHA" + - name: Version numbers match the tag + run: python3 .github/release/release.py check-sources --plan plan.json + - name: The version is not published yet + run: python3 .github/release/release.py check-absent --plan plan.json --target "$TARGET" --nocache "${{ github.run_id }}" + - name: Required checks passed on the tag commit + if: env.TARGET == 'production' + env: + GH_TOKEN: ${{ github.token }} + run: | + gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs?per_page=100" > check-runs.json + python3 .github/release/release.py check-required --check-runs check-runs.json + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: plan + path: plan.json + retention-days: 7 + if-no-files-found: error + + build: + name: Build and check + needs: plan + runs-on: ubuntu-24.04 + # A hung test or clean-project build would otherwise hold the release queue for GitHub's 6-hour default. + timeout-minutes: 60 + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: plan + - uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1 + with: + distribution: corretto + java-version: | + 8 + 17 + - name: Record the JDK and Maven + run: | + echo '### JDK, Java 8 runtime and Maven' >> "$GITHUB_STEP_SUMMARY" + { java -version; "$JAVA_HOME_8_X64/bin/java" -version; mvn -v; } 2>&1 | sed 's/^/ /' >> "$GITHUB_STEP_SUMMARY" + - uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0 + with: + cache-disabled: true + - name: Make sure a virtual display for the JavaFX tests exists + run: command -v xvfb-run > /dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq xvfb; } + - name: Test and check the modules + run: xvfb-run -a ./gradlew --no-daemon --no-build-cache --no-configuration-cache ${{ needs.plan.outputs.check_tasks }} + - name: Publish into the staging folder + run: ./gradlew --no-daemon --no-build-cache --no-configuration-cache ${{ needs.plan.outputs.publish_tasks }} -PRELEASE_SIGNING_ENABLED=false + - name: Stage the release and check its files + run: python3 .github/release/release.py stage --plan plan.json --staging build/release-staging --commit "$GITHUB_SHA" --target "$TARGET" --manifest release-manifest.json + - name: Check the SBOMs against the CycloneDX 1.6 schema + run: | + curl -sSfL -o "$RUNNER_TEMP/cyclonedx" https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.33.1/cyclonedx-linux-x64 + echo "bfc8b2538da86fe239bc53658bbb63c1c8c510a293c1e6891aa5bea5d3c58746 $RUNNER_TEMP/cyclonedx" | sha256sum -c - + chmod +x "$RUNNER_TEMP/cyclonedx" + python3 .github/release/release.py validate-sbom --plan plan.json --staging build/release-staging --cli "$RUNNER_TEMP/cyclonedx" + - name: Check what the release promises integrators + run: python3 .github/release/release.py contract --plan plan.json --staging build/release-staging + - name: Clean projects build against the staged release + run: python3 .github/release/release.py consumer --plan plan.json --staging build/release-staging --java8-home "$JAVA_HOME_8_X64" --work "$RUNNER_TEMP/consumers" + - name: Scan the published dependencies + env: + OSV_FAIL_ON: high + OSV_BLOCKING_SCOPES: published + run: | + ./gradlew -q --no-daemon --no-configuration-cache --init-script .github/scripts/dependency-report.init.gradle "-DpublishedModules=${{ needs.plan.outputs.published_modules }}" printResolvedDependencies > resolved-dependencies.txt + python3 .github/scripts/osv_scan.py < resolved-dependencies.txt + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: staged-release + path: | + build/release-staging + release-manifest.json + retention-days: 7 + if-no-files-found: error + + publish: + name: Approve, sign and upload + needs: [plan, build] + runs-on: ubuntu-24.04 + environment: ${{ needs.plan.outputs.environment }} + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: plan + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: staged-release + - name: The files are exactly what the build produced + run: python3 .github/release/release.py verify-manifest --manifest release-manifest.json --staging build/release-staging + - name: Sign and check the signatures + env: + GNUPGHOME: ${{ runner.temp }}/gnupg + SIGNING_KEY: ${{ secrets.SIGNING_KEY }} + SIGNING_KEY_PASSPHRASE: ${{ secrets.SIGNING_KEY_PASSPHRASE }} + run: | + mkdir -m 700 "$GNUPGHOME" + printf '%s\n' "$SIGNING_KEY" | gpg --batch --import + python3 .github/release/release.py sign --staging build/release-staging --target "$TARGET" --public-key-out signing-public-key.asc + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: signing-public-key + path: signing-public-key.asc + retention-days: 7 + overwrite: true + if-no-files-found: error + - name: Upload to R2 and rewrite the index + env: + AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }} + R2_ACCOUNT_ID: ${{ vars.R2_ACCOUNT_ID }} + R2_BUCKET: ${{ vars.R2_BUCKET }} + run: | + python3 .github/release/release.py upload --plan plan.json --staging build/release-staging + python3 .github/release/release.py index --plan plan.json + - name: Remove the signing key + if: always() + env: + GNUPGHOME: ${{ runner.temp }}/gnupg + run: | + gpgconf --kill gpg-agent || true + rm -rf "$GNUPGHOME" + + verify: + name: Verify from the public address + needs: publish + runs-on: ubuntu-24.04 + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: plan + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: staged-release + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: signing-public-key + - name: Files, signatures and index + run: python3 .github/release/release.py verify-public --plan plan.json --manifest release-manifest.json --target "$TARGET" --nocache "${{ github.run_id }}-${{ github.run_attempt }}" --work "${{ runner.temp }}/downloaded" --public-key signing-public-key.asc + + announce: + name: Announce + needs: verify + if: github.event_name == 'release' && !github.event.release.prerelease + runs-on: ubuntu-24.04 + permissions: {} + steps: + - name: Slack + uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0 + with: + payload: | + { + "repository": "${{ github.repository }}", + "tag_name": "${{ github.event.release.tag_name }}", + "actor": "${{ github.actor }}", + "body": ${{ toJSON(github.event.release.body) }}, + "html_url": "${{ github.event.release.html_url }}" + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE }} + - name: Discord + uses: sarisia/actions-status-discord@9904e3130b8905d5b973df25623f17672dcb3466 # v1.13.0 + with: + webhook: ${{ secrets.DISCORD_WEBHOOK_URL }} + nodetail: true + title: New ${{ github.repository }} version ${{ github.event.release.tag_name }} published by ${{ github.actor }} + description: | + Release URL: ${{ github.event.release.html_url }} + Click [here](https://github.com/Countly/countly-server/blob/master/CHANGELOG.md) to view the change log. + `${{ github.event.release.body }}`