Skip to content

Commit

Permalink
update yaml files (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
shunk031 authored Jun 24, 2024
1 parent 7474222 commit 2b3f5fa
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/layout_alignment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
runs-on: ubuntu-latest

env:
REPO_NAME: "layout-alignment"
DIR_NAME: "layout_alignment"

SRC_DIR: ./github-repo
DST_DIR: ./huggingface-repo

Expand All @@ -28,7 +31,7 @@ jobs:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
run: |
git clone https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/layout-alignment ${DST_DIR}
git clone https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/${REPO_NAME} ${DST_DIR}
- name: Export requirements.txt
run: |
Expand All @@ -39,9 +42,9 @@ jobs:
env:
HF_USERNAME: ${{ secrets.HF_USERNAME }}
HF_EMAIL: ${{ secrets.HF_EMAIL }}
DIR_NAME: "layout_alignment"
SCRIPT_NAME: "layout-alignment.py"
run: |
SCRIPT_NAME=${REPO_NAME}.py
cp ${SRC_DIR}/${DIR_NAME}/README.md ${DST_DIR}/README.md
cp ${SRC_DIR}/${DIR_NAME}/${SCRIPT_NAME} ${DST_DIR}/${SCRIPT_NAME}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/layout_average_iou.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
runs-on: ubuntu-latest

env:
REPO_NAME: "layout-average-iou"
DIR_NAME: "layout_average_iou"

SRC_DIR: ./github-repo
DST_DIR: ./huggingface-repo

Expand All @@ -28,7 +31,7 @@ jobs:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
run: |
git clone https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/layout-average-iou ${DST_DIR}
git clone https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/${REPO_NAME} ${DST_DIR}
- name: Export requirements.txt
run: |
Expand All @@ -39,9 +42,9 @@ jobs:
env:
HF_USERNAME: ${{ secrets.HF_USERNAME }}
HF_EMAIL: ${{ secrets.HF_EMAIL }}
DIR_NAME: "layout_average_iou"
SCRIPT_NAME: "layout-average-iou.py"
run: |
SCRIPT_NAME=${REPO_NAME}.py
cp ${SRC_DIR}/${DIR_NAME}/README.md ${DST_DIR}/README.md
cp ${SRC_DIR}/${DIR_NAME}/${SCRIPT_NAME} ${DST_DIR}/${SCRIPT_NAME}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/layout_generative_model_scores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
runs-on: ubuntu-latest

env:
REPO_NAME: "layout-generative-model-scores"
DIR_NAME: "layout_generative_model_scores"

SRC_DIR: ./github-repo
DST_DIR: ./huggingface-repo

Expand All @@ -28,7 +31,7 @@ jobs:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
run: |
git clone https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/layout-generative-model-scores ${DST_DIR}
git clone https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/${REPO_NAME} ${DST_DIR}
- name: Export requirements.txt
run: |
Expand All @@ -39,9 +42,9 @@ jobs:
env:
HF_USERNAME: ${{ secrets.HF_USERNAME }}
HF_EMAIL: ${{ secrets.HF_EMAIL }}
DIR_NAME: "layout_generative_model_scores"
SCRIPT_NAME: "layout-generative-model-scores.py"
run: |
SCRIPT_NAME=${REPO_NAME}.py
cp ${SRC_DIR}/${DIR_NAME}/README.md ${DST_DIR}/README.md
cp ${SRC_DIR}/${DIR_NAME}/${SCRIPT_NAME} ${DST_DIR}/${SCRIPT_NAME}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/layout_maximum_iou.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
runs-on: ubuntu-latest

env:
REPO_NAME: "layout-maximum-iou"
DIR_NAME: "layout_maximum_iou"

SRC_DIR: ./github-repo
DST_DIR: ./huggingface-repo

Expand All @@ -28,7 +31,7 @@ jobs:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
run: |
git clone https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/layout-maximum-iou ${DST_DIR}
git clone https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/${REPO_NAME} ${DST_DIR}
- name: Export requirements.txt
run: |
Expand All @@ -39,9 +42,9 @@ jobs:
env:
HF_USERNAME: ${{ secrets.HF_USERNAME }}
HF_EMAIL: ${{ secrets.HF_EMAIL }}
DIR_NAME: "layout_maximum_iou"
SCRIPT_NAME: "layout-maximum-iou.py"
run: |
SCRIPT_NAME=${REPO_NAME}.py
cp ${SRC_DIR}/${DIR_NAME}/README.md ${DST_DIR}/README.md
cp ${SRC_DIR}/${DIR_NAME}/${SCRIPT_NAME} ${DST_DIR}/${SCRIPT_NAME}
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/layout_overlap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
runs-on: ubuntu-latest

env:
REPO_NAME: "layout-overlap"
DIR_NAME: "layout_overlap"

SRC_DIR: ./github-repo
DST_DIR: ./huggingface-repo

Expand All @@ -28,7 +31,7 @@ jobs:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
run: |
git clone https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/layout-overlap ${DST_DIR}
git clone https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/spaces/${HF_USERNAME}/${REPO_NAME} ${DST_DIR}
- name: Export requirements.txt
run: |
Expand All @@ -39,9 +42,9 @@ jobs:
env:
HF_USERNAME: ${{ secrets.HF_USERNAME }}
HF_EMAIL: ${{ secrets.HF_EMAIL }}
DIR_NAME: "layout_overlap"
SCRIPT_NAME: "layout-overlap.py"
run: |
SCRIPT_NAME=${REPO_NAME}.py
cp ${SRC_DIR}/${DIR_NAME}/README.md ${DST_DIR}/README.md
cp ${SRC_DIR}/${DIR_NAME}/${SCRIPT_NAME} ${DST_DIR}/${SCRIPT_NAME}
Expand Down

0 comments on commit 2b3f5fa

Please sign in to comment.