Skip to content

Commit

Permalink
Edit Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
050644zf committed Nov 7, 2024
1 parent 21db8b1 commit d301006
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 73 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ASTRAutoUpdater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ name: ASTR Auto Updater
on:
repository_dispatch:
type: [update]

schedule:
- cron: 0 0 * * 1
# add manual trigger
workflow_dispatch:


jobs:
Expand Down Expand Up @@ -39,13 +42,25 @@ jobs:

- name: Updater
run: |
python ./jsonconvert.py -q
if [ "${{ github.event_name }}" == "repository_dispatch" ]; then
python ./jsonconvert.py -q
else
python ./jsonconvert.py -q --all
fi
- name: Push
working-directory: ./ArknightsStoryJson
run: |
git push
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: changes-and-deletion
path: |
./changes.txt
./deletion.txt
- name: Copy diff to tmp folder
run: |
bash ./copy_diff.sh
Expand Down
71 changes: 0 additions & 71 deletions .github/workflows/Weekly.yml

This file was deleted.

0 comments on commit d301006

Please sign in to comment.