From bce97b722e84e41cfd0b7fee351e897f3b2600a2 Mon Sep 17 00:00:00 2001 From: Ruraam <112347754+Ruraam@users.noreply.github.com> Date: Thu, 12 Nov 2026 17:55:42 +0100 Subject: [PATCH 1/2] fix: support reusable APT publication workflow --- .github/workflows/apt-repo.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/apt-repo.yml b/.github/workflows/apt-repo.yml index 796c0b8..41a269c 100644 --- a/.github/workflows/apt-repo.yml +++ b/.github/workflows/apt-repo.yml @@ -7,6 +7,12 @@ on: description: "GitHub release tag to publish (for example v4.1.0)" required: true type: string + workflow_call: + inputs: + release_tag: + description: "GitHub release tag to publish" + required: true + type: string permissions: contents: read From 217be5bf6818122170647b2fb78646e519049b01 Mon Sep 17 00:00:00 2001 From: Ruraam <112347754+Ruraam@users.noreply.github.com> Date: Thu, 12 Nov 2026 17:55:45 +0100 Subject: [PATCH 2/2] fix: call APT publication workflow directly on release --- .github/workflows/release-deb.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-deb.yml b/.github/workflows/release-deb.yml index b45e216..f26e782 100644 --- a/.github/workflows/release-deb.yml +++ b/.github/workflows/release-deb.yml @@ -8,6 +8,8 @@ on: permissions: contents: write actions: write + pages: write + id-token: write jobs: build-deb: @@ -134,11 +136,11 @@ jobs: debup_*.deb SHA256SUMS - - name: Trigger APT repository publication - if: ${{ !github.event.release.prerelease }} - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_TAG: ${{ github.event.release.tag_name }} - run: | - set -Eeuo pipefail - gh workflow run apt-repo.yml --ref main -f "release_tag=$RELEASE_TAG" + publish-apt-repo: + name: Publish APT repository + if: ${{ !github.event.release.prerelease }} + needs: build-deb + uses: ./.github/workflows/apt-repo.yml + with: + release_tag: ${{ github.event.release.tag_name }} + secrets: inherit