Skip to content

Commit

Permalink
Update generate_json_files.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ylyangtw committed Aug 14, 2024
1 parent 593e24e commit 76f262b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/generate_json_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,19 @@ jobs:
run: |
python main.py --configfile ./data/challenge/catalog-yl.json
- name: Commit and push changes
- name: Stage changes in the data folder
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add data/output
git commit -m "Automated commit: Generate folder"
git push origin yl_dv
git add data # Stage only the `data` folder
- name: Commit and push changes if any
run: |
if git diff --cached --quiet; then
echo "No changes to commit."
else
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "Automated commit: Update data folder"
git push origin yl_dv
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 76f262b

Please sign in to comment.