From 2e95c2cc1557c8f69eee1b42d55418812027a1a3 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Tue, 2 Jun 2026 14:40:57 +0200 Subject: [PATCH] Avoid usage of SWIFT_RELEASE_TOKEN in dry runs --- .github/workflows/publish-embedded-packages.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-embedded-packages.yaml b/.github/workflows/publish-embedded-packages.yaml index 977d2043..34e5885d 100644 --- a/.github/workflows/publish-embedded-packages.yaml +++ b/.github/workflows/publish-embedded-packages.yaml @@ -237,7 +237,6 @@ jobs: with: repository: element-hq/element-call-swift path: element-call-swift - token: ${{ secrets.SWIFT_RELEASE_TOKEN }} persist-credentials: false - name: Copy files @@ -268,9 +267,10 @@ jobs: GITHUB_EVENT_RELEASE_HTML_URL: ${{ github.event.release.html_url }} - name: Push + if: ${{ needs.versioning.outputs.DRY_RUN == 'false' }} working-directory: element-call-swift run: | - git push "https://x-access-token:${SWIFT_RELEASE_TOKEN}@github.com/element-hq/element-call-swift.git" --tags ${{ needs.versioning.outputs.DRY_RUN == 'true' && '--dry-run' || '' }} + git push "https://x-access-token:${SWIFT_RELEASE_TOKEN}@github.com/element-hq/element-call-swift.git" --tags env: SWIFT_RELEASE_TOKEN: ${{ secrets.SWIFT_RELEASE_TOKEN }}