force upload #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: v1 loop task bot | |
on: | |
push: | |
schedule: | |
- cron: '0 23 * * *' | |
jobs: | |
bot: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.22.4' | |
- name: Download v1 bot script | |
run: | | |
wget https://github.com/waifu-project/movie/raw/dev/script/ckbot/go.mod | |
wget https://github.com/waifu-project/movie/raw/dev/script/ckbot/go.sum | |
wget https://github.com/waifu-project/movie/raw/dev/script/ckbot/main.go | |
- name: Start run v1 bot script | |
run: go run main.go | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OUTPUT: yoyo.json | |
- name: Auto commit yoyo.json | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add yoyo.json | |
git commit --amend --no-edit --author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
force_with_lease: true |