Skip to content

Commit

Permalink
add workflow_run
Browse files Browse the repository at this point in the history
  • Loading branch information
chiang-yuan committed Jan 11, 2025
1 parent 94c3c81 commit 1aae6fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Publish Release

on:
push:
branches:
- main # Trigger on push to main branch
workflow_run:
workflows: ["Python Test"]
types:
- completed

permissions:
contents: write # Ensure write access to push tags
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/sync-hf.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Sync to Hugging Face hub

on:
workflows: ["Python Test"]
types:
- completed
workflow_run:
workflows: ["Python Test"]
types:
- completed

# to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down

0 comments on commit 1aae6fb

Please sign in to comment.