File tree 2 files changed +3
-25
lines changed
2 files changed +3
-25
lines changed Original file line number Diff line number Diff line change 22
22
run : |
23
23
PR_DIR=${{ github.event.pull_request.number }}
24
24
git rm -r --ignore-unmatch "${PR_DIR}/" || echo "Directory not found"
25
- git commit -m "Delete preview for PR #${{ github.event.pull_request.number }}"
25
+ git commit -m "Delete preview for the PR #${{ github.event.pull_request.number }}"
26
26
git push origin gh-pages
Original file line number Diff line number Diff line change @@ -62,32 +62,10 @@ jobs:
62
62
id : get-pr-number
63
63
run : echo "pr_number=$(ls public)" >> $GITHUB_OUTPUT
64
64
65
- - name : Configure git
66
- run : |
67
- git config --global user.name "github-actions[bot]"
68
- git config --global user.email "github-actions[bot]@users.noreply.github.com"
69
-
70
65
- name : Deploy to gh-pages
71
- uses : peaceiris/actions-gh-pages@v3
66
+ uses : peaceiris/actions-gh-pages@v4
72
67
with :
73
68
github_token : ${{ github.token }}
74
69
publish_dir : public/${{ steps.get-pr-number.outputs.pr_number }}
75
- publish_branch : gh-pages
76
70
destination_dir : ${{ steps.get-pr-number.outputs.pr_number }}
77
-
78
- - name : Find PR comment
79
- uses : peter-evans/find-comment@v3
80
- id : fc
81
- with :
82
- issue-number : ${{ steps.get-pr-number.outputs.pr_number }}
83
- comment-author : github-actions[bot]
84
- body-includes : Preview the changes for PR
85
-
86
- - name : Create or update PR comment
87
- if : steps.get-pr-number.outputs.pr_number != 'main'
88
- uses : peter-evans/create-or-update-comment@v4
89
- with :
90
- comment-id : ${{ steps.fc.outputs.comment-id }}
91
- issue-number : ${{ steps.get-pr-number.outputs.pr_number }}
92
- body : ' Preview the changes for PR #${{ steps.get-pr-number.outputs.pr_number }} (for commit ${{ github.event.workflow_run.head_sha }}) at https://gh.cp-algorithms.com/${{ steps.get-pr-number.outputs.pr_number }}/.'
93
- edit-mode : replace
71
+ commit_message : ' Preview for the PR #${{ steps.get-pr-number.outputs.pr_number }} (commit ${{ github.event.workflow_run.head_sha }})'
You can’t perform that action at this time.
0 commit comments