Skip to content

Commit

Permalink
Update static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyPenguins authored Nov 4, 2024
1 parent af88108 commit 048629b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
echo "repoSiteURL=$repoSiteURL" >> $GITHUB_ENV
- name: Leave a link to the PR
if: ${{ github.event_name == 'pull_request' }} && ${{ github.event.action != 'closed' }}
if: ${{ success() && github.event_name == 'pull_request' && github.event.action != 'closed' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-preview
Expand All @@ -149,7 +149,7 @@ jobs:
Preview at https://${{ env.repoSiteURL }}/pr-previews/${{ github.event.number }} for commit ${{ github.sha }}
- name: Or delete the link...
if: ${{ github.event_name == 'pull_request' }} && ${{ github.event.action == 'closed' }}
if: ${{ github.event_name == 'pull_request' && github.event.action == 'closed' }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-preview
Expand Down

0 comments on commit 048629b

Please sign in to comment.