diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8ee8554..aa46460 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,8 @@ concurrency: permissions: contents: write + # actions: write lets the final step dispatch the xposed-release workflow. + actions: write jobs: release: @@ -102,3 +104,15 @@ jobs: generate_release_notes: true fail_on_unmatched_files: true files: ${{ steps.apk.outputs.path }} + + - name: Mirror the release into the Xposed Modules Repo + # The release above is authored by GITHUB_TOKEN, and GitHub deliberately + # won't start another workflow from a GITHUB_TOKEN-created `release` event + # (anti-recursion). workflow_dispatch is an explicit exception, so we kick + # xposed-release.yml directly here to mirror the release we just published. + env: + GH_TOKEN: ${{ github.token }} + run: | + gh workflow run xposed-release.yml \ + --ref "${{ github.ref_name }}" \ + -f tag="${{ steps.version.outputs.tag }}"