Skip to content

Commit

Permalink
GA: 修复locals(greasyfork).js_update.yaml并修改步骤名称
Browse files Browse the repository at this point in the history
`actions/checkout@v4`使用`fetch-depth: 0`参数, 获取所有标签和分支的所有历史记录
  • Loading branch information
maboloshi committed Dec 15, 2023
1 parent b91dbea commit 7d1f0b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/locals(greasyfork).js_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Sync update locals(greasyfork).js
run: |
Expand All @@ -29,7 +31,7 @@ jobs:
git diff --quiet --exit-code "main(greasyfork).user.js" || \
echo "MAIN_USER_JS_IS_CHANGED=true" >> $GITHUB_ENV
- name: Commit and push locals(greasyfork).js
- name: Commit and push locals(greasyfork).js and main(greasyfork).user.js
if: ${{ env.LOCALS_JS_IS_CHANGED == 'true' &&
env.MAIN_USER_JS_IS_CHANGED == 'true' }}
run: |
Expand Down

0 comments on commit 7d1f0b9

Please sign in to comment.