Skip to content

Commit

Permalink
style: 根据actionlint检测处理的的问题,将workflows/*.yml文件进行修改,使其符合规则要求。
Browse files Browse the repository at this point in the history
  • Loading branch information
ChinaGodMan committed Dec 23, 2024
1 parent f32e1f5 commit ad7d2a2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/add-reviewed-by.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: add-reviewed-by
on:
pull_request_review:
branches:
- main
types:
- submitted

Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/chinagodman-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 人民的勤务员更新脚本
on:
push:
paths:
- "**/*.js" #新的脚本被提交或者被修改了.
- "**/*.js" # 新的脚本被提交或者被修改了.
workflow_dispatch:

concurrency:
Expand All @@ -30,9 +30,8 @@ jobs:
env:
COMMIT_MSG: ${{ github.event.head_commit.message }}
run: |
echo "ESCAPED_MSG<<EOF" >> $GITHUB_ENV
echo "$COMMIT_MSG" | sed 's/`/\`/g' >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
ESCAPED_MSG="$COMMIT_MSG"
echo "ESCAPED_MSG=$ESCAPED_MSG" >> "$GITHUB_ENV"
- name: 根目录脚本__更新py
run: |
Expand All @@ -44,5 +43,5 @@ jobs:
git config --global user.signingkey "${{ secrets.GPG_PRIVATE_ID }}"
git pull
git add .
git commit -n -S -m "$ESCAPED_MSG" || echo "没有需要提交的更改"
git commit -n -S -m "$ESCAPED_MSG" || echo "没有需要提交的更改"
git push
2 changes: 1 addition & 1 deletion .github/workflows/update-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
openDelimiter='<!--AUTO_GENERATED_PLEASE_DONT_DELETE_IT-->'
closeDelimiter='<!--AUTO_GENERATED_PLEASE_DONT_DELETE_IT-END-->'
sed -i "/$openDelimiter/,/$closeDelimiter/c\\$openDelimiter$escapedHtmlList$closeDelimiter" docs/README.md
git diff --quiet --exit-code docs/README.md || echo "CHANGES_DETECTED=true" >> $GITHUB_ENV
git diff --quiet --exit-code docs/README.md || echo "CHANGES_DETECTED=true" >> "$GITHUB_ENV"
- name: Commit changes with GPG signature
if: env.CHANGES_DETECTED == 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-docs-readme-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ jobs:
git config --global user.signingkey "${{ secrets.GPG_PRIVATE_ID }}"
git pull
git add .
git commit -n -S -m 'docs: 更新脚本表格[`ScriptsPath.json`]→[`README.md`]' || echo "没有需要提交的更改"
git commit -n -S -m "docs: 更新脚本表格[\`ScriptsPath.json\`]→[\`README.md\`]" || echo "没有需要提交的更改"
git push

0 comments on commit ad7d2a2

Please sign in to comment.