Skip to content

Commit

Permalink
GitHub Action: 修正main.user.js_version_update.yaml语法错误
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Nov 26, 2023
1 parent 92e56cd commit 6b0d7d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.user.js_version_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
if: ${{ env.AHEAD == 'true' }}
run: |
sed -i "s/@version\s*[^\\s]*/@version $(TZ='Asia/Shanghai' date +'%Y-%m-%d')/" main.user.js
git diff --exit-code main.user.js > /dev/null || echo "Changes detected" >> $GITHUB_ENV
git diff --quiet --exit-code README.md || echo "CHANGES_DETECTED=true" >> $GITHUB_ENV
- name: Commit and push main.user.js
if: ${{ env.AHEAD == 'true' && env.CHANGES_DETECTED == 'true' }}
Expand All @@ -41,5 +41,5 @@ jobs:
${{ secrets.CI_GITHUB_TOKEN }} \
"maboloshi/github-chinese" \
"main.user.js" \
"main.user.js Update to version $(TZ='Asia/Shanghai' date +'%Y-%m-%d')"
"main.user.js Update to version $(TZ='Asia/Shanghai' date +'%Y-%m-%d')" \
"Signed-off-by: 沙漠之子 <[email protected]>"

0 comments on commit 6b0d7d1

Please sign in to comment.