feat(workflows): add GitHub release sync workflow
All checks were successful
Auto Changelog & Release / detect-version-change (push) Successful in 3s
Auto Changelog & Release / release (push) Has been skipped
Auto Changelog & Release / changelog-only (push) Successful in 6s
Build and Publish nightly package / build-and-publish (push) Successful in 58s
All checks were successful
Auto Changelog & Release / detect-version-change (push) Successful in 3s
Auto Changelog & Release / release (push) Has been skipped
Auto Changelog & Release / changelog-only (push) Successful in 6s
Build and Publish nightly package / build-and-publish (push) Successful in 58s
- Introduces a workflow to synchronize releases with GitHub - Supports manual triggers with optional tag input - Utilizes a custom releases sync action for automation
This commit is contained in:
27
.gitea/workflows/sync-github.yml
Normal file
27
.gitea/workflows/sync-github.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
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: Checkout (optional if needed)
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Run Releases Sync Action
|
||||||
|
uses: https://git.0xmax42.io/actions/releases-sync
|
||||||
|
with:
|
||||||
|
tag_name: ${{ inputs.tag || github.event.release.tag_name }}
|
||||||
|
github_token: ${{ secrets.SYNC_GITHUB_TOKEN }}
|
||||||
|
github_owner: 0xMax42
|
||||||
|
github_repo: ait
|
Reference in New Issue
Block a user