Skip to content

Commit

Permalink
Fix: main.user.js_version_update.yaml语法错误
Browse files Browse the repository at this point in the history
1. 提交信息避免使用冒号
2. 自动触发时间改为北京时间每周一凌晨

Signed-off-by: 沙漠之子 <[email protected]>
  • Loading branch information
maboloshi authored Nov 25, 2023
1 parent 29000db commit 0881620
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.user.js_version_update.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: main.user.js version update
on:
schedule:
- cron: "0 0 * * 1"
- cron: "0 16 * * 0"
workflow_dispatch:

jobs:
update_version:
if: ${{ !startsWith(github.event.client_payload.head_commit.message, 'main.user.js: Update to version') }}
if: ${{ !startsWith(github.event.client_payload.head_commit.message, 'main.user.js Update to version') }}
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -45,5 +44,5 @@ jobs:
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add main.user.js
git commit -m "main.user.js: Update to version $(TZ='Asia/Shanghai' date +'%Y-%m-%d')"
git commit -m "main.user.js Update to version $(TZ='Asia/Shanghai' date +'%Y-%m-%d')"
git push origin HEAD:${{ github.ref }}

0 comments on commit 0881620

Please sign in to comment.