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 e005a3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 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]
workflow_dispatch:

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

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

# to run this workflow manually from the Actions tab
workflow_run:
workflows: [Python Test]
types: [completed]
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uv pip install dgl -f https://data.dgl.ai/wheels/torch-${TORCH}/${CUDA}/repo.html
uv pip install -e .[test]
uv pip install -e .[mace]
uv pip install deepmd-kit@git+https://github.com/deepmodeling/deepmd-kit.git@v3.0.0b4
uv pip install -e .[deepmd]
- name: List dependencies
run: pip list
Expand Down

0 comments on commit e005a3b

Please sign in to comment.