From 27c7367ef1799428cc5a491b25036f77b65758af Mon Sep 17 00:00:00 2001 From: "Max P." Date: Mon, 26 May 2025 17:22:17 +0200 Subject: [PATCH] feat(workflows): add GitHub release synchronization workflow - Introduces a workflow to sync Gitea releases with GitHub - Supports manual dispatch and reacts to release events - Utilizes secrets for secure token management --- .gitea/workflows/sync-github.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/sync-github.yml diff --git a/.gitea/workflows/sync-github.yml b/.gitea/workflows/sync-github.yml new file mode 100644 index 0000000..4bafa31 --- /dev/null +++ b/.gitea/workflows/sync-github.yml @@ -0,0 +1,28 @@ +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