diff --git a/.github/workflows/ASTRAutoUpdater.yml b/.github/workflows/ASTRAutoUpdater.yml index 01ac081..9fc5b06 100644 --- a/.github/workflows/ASTRAutoUpdater.yml +++ b/.github/workflows/ASTRAutoUpdater.yml @@ -36,12 +36,16 @@ jobs: uses: actions/setup-python@v2 with: python-version: "3.8" + - name: updater run: | - python ./jsonconvert.py - cd ArknightsStoryJson + python ./jsonconvert.py --all + + - name: push + working-directory: ./ArknightsStoryJson + run: | git push - + - name: Install AWS CLI run: | sudo apt-get update @@ -58,3 +62,4 @@ jobs: aws s3 sync . s3://${{ secrets.CLOUDFLARE_BUCKET_NAME }} --endpoint-url=https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com --delete --exclude ".git/*" env: CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + working-directory: ./ArknightsStoryJson diff --git a/.github/workflows/Weekly.yml b/.github/workflows/Weekly.yml index 754b2f4..110d0d1 100644 --- a/.github/workflows/Weekly.yml +++ b/.github/workflows/Weekly.yml @@ -38,10 +38,14 @@ jobs: uses: actions/setup-python@v2 with: python-version: "3.8" + - name: updater run: | python ./jsonconvert.py --all - cd ArknightsStoryJson + + - name: push + working-directory: ./ArknightsStoryJson + run: | git push - name: Install AWS CLI @@ -59,4 +63,5 @@ jobs: run: | aws s3 sync . s3://${{ secrets.CLOUDFLARE_BUCKET_NAME }} --endpoint-url=https://${{ secrets.CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com --delete --exclude ".git/*" env: - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} \ No newline at end of file + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + working-directory: ./ArknightsStoryJson \ No newline at end of file