Commit
·
7759dc1
1
Parent(s):
9cb0d04
fixing CI
Browse files- .github/workflows/main.yml +3 -11
.github/workflows/main.yml
CHANGED
@@ -1,13 +1,8 @@
|
|
1 |
name: CI to HF
|
2 |
|
3 |
-
# Controls when the workflow will run
|
4 |
on:
|
5 |
-
# Triggers the workflow on push events but only for the "master" branch
|
6 |
push:
|
7 |
-
branches: [ "master"
|
8 |
-
|
9 |
-
# Allows you to run this workflow manually from the Actions tab
|
10 |
-
workflow_dispatch:
|
11 |
|
12 |
jobs:
|
13 |
sync-to-hub:
|
@@ -24,14 +19,11 @@ jobs:
|
|
24 |
git remote add space https://ArissBandoss:[email protected]/spaces/ArissBandoss/DeepFake-Videos-Detection
|
25 |
git fetch space
|
26 |
|
27 |
-
- name: Debug remote
|
28 |
-
run: git remote -v
|
29 |
-
|
30 |
- name: Push to hub
|
31 |
env:
|
32 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
33 |
run: |
|
34 |
git config --global user.name "GitHub Actions"
|
35 |
git config --global user.email "[email protected]"
|
36 |
-
git pull space
|
37 |
-
git push https://ArissBandoss:[email protected]/spaces/ArissBandoss/DeepFake-Videos-Detection main
|
|
|
1 |
name: CI to HF
|
2 |
|
|
|
3 |
on:
|
|
|
4 |
push:
|
5 |
+
branches: [ "main" ] # Change from "master" to "main"
|
|
|
|
|
|
|
6 |
|
7 |
jobs:
|
8 |
sync-to-hub:
|
|
|
19 |
git remote add space https://ArissBandoss:[email protected]/spaces/ArissBandoss/DeepFake-Videos-Detection
|
20 |
git fetch space
|
21 |
|
|
|
|
|
|
|
22 |
- name: Push to hub
|
23 |
env:
|
24 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
25 |
run: |
|
26 |
git config --global user.name "GitHub Actions"
|
27 |
git config --global user.email "[email protected]"
|
28 |
+
git pull space main --rebase # Change from "master" to "main"
|
29 |
+
git push https://ArissBandoss:[email protected]/spaces/ArissBandoss/DeepFake-Videos-Detection main # Change from "master" to "main"
|