Skip to content

Commit

Permalink
添加计划任务
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Feb 5, 2024
1 parent 475799e commit 51f056d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "GitHub Actions"

on:
workflow_dispatch:
schedule:
- cron: "0 14 * * *"

jobs:
ddy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"

- name: "Working"
timeout-minutes: 360
run: php -f build.php

- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "⌚️$(date +%Y%m%d%H%M%S)" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit 51f056d

Please sign in to comment.