Anthonyg5005 commited on
Commit
5e17b4b
1 Parent(s): ff3850b

disable lfs

Browse files

also changed name of git clone

Files changed (1) hide show
  1. .github/workflows/main.yml +14 -6
.github/workflows/main.yml CHANGED
@@ -7,20 +7,28 @@ jobs:
7
  clone:
8
  runs-on: ubuntu-latest
9
  steps:
10
- - uses: actions/checkout@v3
 
11
  with:
 
 
 
 
 
 
12
  fetch-depth: 0
13
- lfs: true
 
 
 
14
  - name: Clone from Hugging Face
15
  env:
16
  HF_TOKEN: ${{ secrets.HF_ACCESS_TOKEN }}
17
  github_token: ${{ secrets.WORKFLOW_TOKEN }}
18
  run: |
19
- git clone https://Anthonyg5005:[email protected]/Anthonyg5005/hf-scripts
20
- cd hf-scripts
21
 
22
  # Now, push to the original GitHub repository with username and token
23
  git remote set-url origin https://Anthonyg5005:${{ secrets.WORKFLOW_TOKEN }}@github.com/Anthonyg5005/hf-scripts.git
24
  git push --mirror
25
-
26
- #AI Generated code, don't know how to use gh actions
 
7
  clone:
8
  runs-on: ubuntu-latest
9
  steps:
10
+ - name: Checkout
11
+ uses: actions/[email protected]
12
  with:
13
+ repository: Anthonyg5005/hf-scripts
14
+ ref: main
15
+ token: ${{ secrets.WORKFLOW_TOKEN }}
16
+ persist-credentials: true
17
+ path: 'hf-scripts'
18
+ clean: true
19
  fetch-depth: 0
20
+ lfs: false
21
+ submodules: true
22
+ set-safe-directory: true
23
+ github-server-url: 'https://github.com'
24
  - name: Clone from Hugging Face
25
  env:
26
  HF_TOKEN: ${{ secrets.HF_ACCESS_TOKEN }}
27
  github_token: ${{ secrets.WORKFLOW_TOKEN }}
28
  run: |
29
+ git clone https://Anthonyg5005:[email protected]/Anthonyg5005/hf-scripts mirror
30
+ cd mirror
31
 
32
  # Now, push to the original GitHub repository with username and token
33
  git remote set-url origin https://Anthonyg5005:${{ secrets.WORKFLOW_TOKEN }}@github.com/Anthonyg5005/hf-scripts.git
34
  git push --mirror