From 0c1d8be79f0cc331db9029beb46384659f465f6e Mon Sep 17 00:00:00 2001 From: "Max P." Date: Mon, 26 May 2025 17:26:59 +0200 Subject: [PATCH] chore(workflows): consolidate release sync into upload workflow - Remove separate workflow for syncing releases to GitHub - Integrate release sync steps into the upload-assets workflow - Simplify workflow management and reduce duplication --- .gitea/workflows/sync-github.yml | 28 ---------------------------- .gitea/workflows/upload-assets.yml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 28 deletions(-) delete mode 100644 .gitea/workflows/sync-github.yml diff --git a/.gitea/workflows/sync-github.yml b/.gitea/workflows/sync-github.yml deleted file mode 100644 index 4bafa31..0000000 --- a/.gitea/workflows/sync-github.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Sync Release to GitHub - -on: - workflow_dispatch: - inputs: - tag: - description: "Release tag to synchronize" - required: false - type: string - release: - types: [published, edited] - -jobs: - sync-github: - runs-on: ubuntu-22.04 - - steps: - - name: Run Releases Sync Action - uses: https://git.0xmax42.io/actions/releases-sync@main - with: - gitea_token: ${{ secrets.RELEASE_PUBLISH_TOKEN }} - gitea_url: https://git.0xmax42.io - gitea_owner: maxp - gitea_repo: systemd-timer - tag_name: ${{ inputs.tag || github.event.release.tag_name }} - github_token: ${{ secrets.SYNC_GITHUB_TOKEN }} - github_owner: 0xmax42 - github_repo: systemd-timer diff --git a/.gitea/workflows/upload-assets.yml b/.gitea/workflows/upload-assets.yml index 456a424..f423026 100644 --- a/.gitea/workflows/upload-assets.yml +++ b/.gitea/workflows/upload-assets.yml @@ -42,3 +42,15 @@ jobs: - name: Upload SHA256 for ${{ matrix.target }}-${{ matrix.arch }} run: .gitea/scripts/upload-asset.sh ./dist/systemd-timer-${{ matrix.target }}-${{ matrix.arch }}.sha256 systemd-timer-${{ matrix.target }}-${{ matrix.arch }}.sha256 + + - name: Run Releases Sync Action + uses: https://git.0xmax42.io/actions/releases-sync@main + with: + gitea_token: ${{ secrets.RELEASE_PUBLISH_TOKEN }} + gitea_url: https://git.0xmax42.io + gitea_owner: maxp + gitea_repo: systemd-timer + tag_name: ${{ github.event.release.tag_name }} + github_token: ${{ secrets.SYNC_GITHUB_TOKEN }} + github_owner: 0xmax42 + github_repo: systemd-timer