Commit
·
7a96592
1
Parent(s):
8aed5f0
Combine both worflows
Browse files
.github/workflows/sync_to_HF_hub.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
name: Sync to Hugging Face hub
|
2 |
-
on:
|
3 |
-
push:
|
4 |
-
branches: [main]
|
5 |
-
|
6 |
-
# to run this workflow manually from the Actions tab
|
7 |
-
workflow_dispatch:
|
8 |
-
|
9 |
-
jobs:
|
10 |
-
sync-to-hub:
|
11 |
-
runs-on: ubuntu-latest
|
12 |
-
steps:
|
13 |
-
- uses: actions/checkout@v3
|
14 |
-
with:
|
15 |
-
fetch-depth: 0
|
16 |
-
lfs: true
|
17 |
-
- name: Push to hub
|
18 |
-
env:
|
19 |
-
HF: ${{ secrets.HF }}
|
20 |
-
run: git push --force https://soumyaprabhamaiti:[email protected]/spaces/soumyaprabhamaiti/pet-image-segmentation-pytorch main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/{sync_to_core_lib_github.yml → sync_to_target_repos.yml}
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
name: Sync to
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
@@ -7,15 +7,19 @@ on:
|
|
7 |
workflow_dispatch:
|
8 |
|
9 |
jobs:
|
10 |
-
sync-to-
|
11 |
runs-on: ubuntu-latest
|
12 |
steps:
|
13 |
- uses: actions/checkout@v4
|
14 |
with:
|
15 |
fetch-depth: 0
|
16 |
lfs: true
|
17 |
-
- name: Push to
|
|
|
|
|
|
|
|
|
18 |
env:
|
19 |
CORE_LIB_GH_PAT: ${{ secrets.CORE_LIB_GH_PAT }}
|
20 |
CORE_LIB_REPO_NAME: pet_seg_core
|
21 |
-
run: rm -rf .git && cd $CORE_LIB_REPO_NAME && git config --global user.email "[email protected]" && git config --global user.name "Github Actions (on behalf of Soumya Prabha Maiti)" && git init --initial-branch=main && git add . && git commit -m "Modify core library" && git remote add origin https://[email protected]/soumya-prabha-maiti/$CORE_LIB_REPO_NAME.git && git push -u origin main --force
|
|
|
1 |
+
name: Sync to Target Repos
|
2 |
on:
|
3 |
push:
|
4 |
branches: [main]
|
|
|
7 |
workflow_dispatch:
|
8 |
|
9 |
jobs:
|
10 |
+
sync-to-targets:
|
11 |
runs-on: ubuntu-latest
|
12 |
steps:
|
13 |
- uses: actions/checkout@v4
|
14 |
with:
|
15 |
fetch-depth: 0
|
16 |
lfs: true
|
17 |
+
- name: Push to HF spaces
|
18 |
+
env:
|
19 |
+
HF: ${{ secrets.HF }}
|
20 |
+
run: git push --force https://soumyaprabhamaiti:[email protected]/spaces/soumyaprabhamaiti/pet-image-segmentation-pytorch main
|
21 |
+
- name: Push to core lib github repo
|
22 |
env:
|
23 |
CORE_LIB_GH_PAT: ${{ secrets.CORE_LIB_GH_PAT }}
|
24 |
CORE_LIB_REPO_NAME: pet_seg_core
|
25 |
+
run: rm -rf .git && cd $CORE_LIB_REPO_NAME && git config --global user.email "[email protected]" && git config --global user.name "Github Actions (on behalf of Soumya Prabha Maiti)" && git init --initial-branch=main && git add . && git commit -m "Modify core library" && git remote add origin https://[email protected]/soumya-prabha-maiti/$CORE_LIB_REPO_NAME.git && git push -u origin main --force
|