Skip to content

Commit

Permalink
Update publish-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zony authored Jan 18, 2021
1 parent 4342620 commit 972a834
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fetch-depth: 0

- name: Find and Replace
uses: shitiomatic/str-replace@master
uses: jacobtomlinson/gha-find-replace@master
with:
find: \]\((/docs/)
replace: "](/modules/${{ github.event.repository.name }}/"
Expand All @@ -32,7 +32,6 @@ jobs:
cp -rf ../docs/ docs/.vuepress/public/modules/${{ github.event.repository.name }}
git add --all
echo "##[set-output name=diff;]$(git diff --staged)"
- name: Commit files
if: steps.change.outputs.diff
run: |
Expand All @@ -41,11 +40,10 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Update the docs of ${{ github.event.repository.name }}" -a
- name: Push changes
if: steps.change.outputs.diff
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.EASYABP_IO_ACCESS_TOKEN }}
repository: EasyAbp/easyabp.github.io
directory: easyabp.github.io
directory: easyabp.github.io

0 comments on commit 972a834

Please sign in to comment.