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 0402f29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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
3 changes: 2 additions & 1 deletion .github/workflows/sync-hf.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Sync to Hugging Face hub

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

Expand Down

0 comments on commit 0402f29

Please sign in to comment.