Skip to content

Commit

Permalink
Merge pull request #125 from StefMa/cd-cleanup-fix
Browse files Browse the repository at this point in the history
Fix delete preview  comment domain
  • Loading branch information
oleg-nenashev authored Nov 18, 2024
2 parents 97e556f + a0542f9 commit 41490ad
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/preview-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,20 @@ jobs:

- name: Comment on PR
uses: hasura/comment-progress@v2.2.0
if: github.event.pull_request.merged == true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
number: ${{ github.event.number }}
id: deploy-preview
message: >
🪓 PR closed, deleted preview at https://github.com/${{ env.PREVIEW_REPO }}/tree/gh-pages/${{ env.PPREVIEW_PATH }}/
🪓 PR merged, preview deleted ✅ Enjoy the updated content at https://community.gradle.org/
- name: Comment on PR
uses: hasura/comment-progress@v2.2.0
if: github.event.pull_request.merged == false
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
number: ${{ github.event.number }}
message: >
🪓 PR closed, preview deleted ✅

0 comments on commit 41490ad

Please sign in to comment.