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

chore: change workflow dispatch to repository dispatch

parent c29d13c2
name: Release Build name: Release Build
on: on:
workflow_dispatch: repository_dispatch:
types: [release-build]
permissions: permissions:
contents: write contents: write
jobs: jobs:
release: release:
name: Tag Main Branch and Create Release name: Tag Main Branch and Create Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'nunchaku-tech/nunchaku' if: github.repository == 'nunchaku-tech/nunchaku' && github.actor == 'lmxyy'
outputs: outputs:
tag_name: ${{ steps.set-tag.outputs.tag_name }} tag_name: ${{ steps.set-tag.outputs.tag_name }}
steps: steps:
......
...@@ -2,11 +2,12 @@ name: Synchronize HuggingFace Repos to ModelScope ...@@ -2,11 +2,12 @@ name: Synchronize HuggingFace Repos to ModelScope
on: on:
schedule: schedule:
- cron: '0 3 * * *' # Run every day at 03:00 UTC - 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: jobs:
sync: sync:
runs-on: ubuntu-latest 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: strategy:
matrix: matrix:
repo: 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