Commit e2953c01 authored by Muyang Li's avatar Muyang Li
Browse files

chore: change workflow dispatch to repository dispatch

parent c29d13c2
name: Release Build
on:
workflow_dispatch:
repository_dispatch:
types: [release-build]
permissions:
contents: write
jobs:
release:
name: Tag Main Branch and Create Release
runs-on: ubuntu-latest
if: github.repository == 'nunchaku-tech/nunchaku'
if: github.repository == 'nunchaku-tech/nunchaku' && github.actor == 'lmxyy'
outputs:
tag_name: ${{ steps.set-tag.outputs.tag_name }}
steps:
......
......@@ -2,11 +2,12 @@ name: Synchronize HuggingFace Repos to ModelScope
on:
schedule:
- cron: '0 3 * * *' # Run every day at 03:00 UTC
# workflow_dispatch: # Allow manual trigger from GitHub UI
repository_dispatch:
types: [sync-hf-to-ms]
jobs:
sync:
runs-on: ubuntu-latest
if: github.repository == 'nunchaku-tech/nunchaku'
if: github.repository == 'nunchaku-tech/nunchaku' && (github.event_name != 'repository_dispatch' || github.actor == 'lmxyy')
strategy:
matrix:
repo:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment