Skip to content

Commit 05d2377

Browse files
authored
Merge branch 'main' into patch-1
2 parents 38982cb + 622b8f8 commit 05d2377

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

.github/workflows/delete-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
run: |
2323
PR_DIR=${{ github.event.pull_request.number }}
2424
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 }}"
2626
git push origin gh-pages

.github/workflows/deploy-prod.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -62,32 +62,10 @@ jobs:
6262
id: get-pr-number
6363
run: echo "pr_number=$(ls public)" >> $GITHUB_OUTPUT
6464

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-
7065
- name: Deploy to gh-pages
71-
uses: peaceiris/actions-gh-pages@v3
66+
uses: peaceiris/actions-gh-pages@v4
7267
with:
7368
github_token: ${{ github.token }}
7469
publish_dir: public/${{ steps.get-pr-number.outputs.pr_number }}
75-
publish_branch: gh-pages
7670
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 }})'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy