Skip to content

Commit

Permalink
GithubActions中去除评论
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsFated committed Aug 30, 2024
1 parent ee4a15b commit dd6f21f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/nodejs-npm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
required: false
type: boolean
default: false
comments:
required: false
type: string
default: "comments"

jobs:
build:
Expand Down Expand Up @@ -45,9 +49,9 @@ jobs:
run: |
chmod +x prepare.sh
if [ "${{ inputs.need_a6 }}" = "true" ]; then
./prepare.sh ${{ inputs.domain }} "$A2" "$A3" "$A4" "$A5" '${{ secrets.A6 }}'
./prepare.sh ${{ inputs.domain }} "$A2" "$A3" "$A4" "$A5" '${{ secrets.A6 }}' "${{ inputs.comments }}"
else
./prepare.sh ${{ inputs.domain }} "$A2" "$A3" "$A4" "$A5" ""
./prepare.sh ${{ inputs.domain }} "$A2" "$A3" "$A4" "$A5" "" "${{ inputs.comments }}"
fi
npm run build
- uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/selfhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
with:
domain: itsfated.top
need_a6: true
comments: no_comments
secrets: inherit
deploy:
needs: call-nodejs-npm-build
Expand Down

0 comments on commit dd6f21f

Please sign in to comment.