mirror of
https://github.com/daydreamer-json/ak-endfield-api-archive.git
synced 2026-04-07 16:12:20 +02:00
ci: fix git add
This commit is contained in:
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@@ -47,12 +47,14 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
output/akEndfield/**
|
output/akEndfield/**
|
||||||
output/raw/**
|
output/raw/**
|
||||||
output/mirror_file_list.json
|
output/mirror_file_list_pending.json
|
||||||
|
output/mirror_file_res_list_pending.json
|
||||||
|
output/mirror_file_res_patch_list_pending.json
|
||||||
if-no-commit: info
|
if-no-commit: info
|
||||||
- name: Git commit and push (Fallback)
|
- name: Git commit and push (Fallback)
|
||||||
if: steps.commit_1.outcome == 'failure'
|
if: steps.commit_1.outcome == 'failure'
|
||||||
run: |
|
run: |
|
||||||
git add output/akEndfield/** output/raw/** output/mirror_file_list.json
|
git add output/akEndfield/** output/raw/** output/mirror_file_list_pending.json output/mirror_file_res_list_pending.json output/mirror_file_res_patch_list_pending.json
|
||||||
git commit -m "[Auto] API update" || echo "No changes to commit"
|
git commit -m "[Auto] API update" || echo "No changes to commit"
|
||||||
git push
|
git push
|
||||||
- name: Run GitHub mirror upload
|
- name: Run GitHub mirror upload
|
||||||
@@ -71,10 +73,14 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
output/mirror_file_list.json
|
output/mirror_file_list.json
|
||||||
output/mirror_file_list_pending.json
|
output/mirror_file_list_pending.json
|
||||||
|
output/mirror_file_res_list.json.zst
|
||||||
|
output/mirror_file_res_list_pending.json
|
||||||
|
output/mirror_file_res_patch_list.json.zst
|
||||||
|
output/mirror_file_res_patch_list_pending.json
|
||||||
if-no-commit: info
|
if-no-commit: info
|
||||||
- name: Git commit and push (Fallback)
|
- name: Git commit and push (Fallback)
|
||||||
if: steps.commit_2.outcome == 'failure'
|
if: steps.commit_2.outcome == 'failure'
|
||||||
run: |
|
run: |
|
||||||
git add output/mirror_file_list.json output/mirror_file_list_pending.json
|
git add output/mirror_file_list.json output/mirror_file_list_pending.json output/mirror_file_res_list.json.zst output/mirror_file_res_list_pending.json output/mirror_file_res_patch_list.json.zst output/mirror_file_res_patch_list_pending.json
|
||||||
git commit -m "[Auto] API update" || echo "No changes to commit"
|
git commit -m "[Auto] API update" || echo "No changes to commit"
|
||||||
git push
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user