diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index b259f55..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Images - -on: - workflow_dispatch: - -jobs: - Images: - runs-on: ubuntu-latest - timeout-minutes: 15 - - steps: - - uses: actions/checkout@v2 - - - name: Install dependencies - run: | - sudo apt-get install -y libguestfs-tools rng-tools wget - - - name: Get Images - run: | - for image in ubuntu20.qcow2 ubuntu22.qcow2; do - wget "https://cdn-backblaze.down.idc.wiki//Image/realServer-Template/$image" - done - - - name: Update qcow2 - run: | - for image in ubuntu20.qcow2 ubuntu22.qcow2; do - sudo bash back/rebuild_qcow2.sh $image - done - - - name: Move qcow2 - run: | - mv *.qcow2 images/ - - - name: Configure Git - run: | - git config --global user.name "update" - git config --global user.email "tg@spiritlhl.top" - - - name: Add files to Git staging area - run: | - ls - pwd - git add . - - - name: Check Git status - run: | - git branch -a - git remote -v - git status - - - name: Commit changes - run: | - #( - git commit -m "Update CSV files" - #) || true - - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }}