Skip to content

Commit

Permalink
Add preview env URL to PRs (plausible#4273)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnkk authored Jun 24, 2024
1 parent 4ddd924 commit 6f2e124
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/comment-preview-url.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Add preview environment URL to PR

on:
pull_request:
types: [labeled]

permissions:
pull-requests: write

env:
PR_NUMBER: ${{ github.event.number }}

jobs:
comment:
if: ${{ contains(github.event.pull_request.labels.*.name, 'preview') }}
runs-on: ubuntu-latest
steps:
- name: Comment with preview URL
uses: thollander/[email protected]
with:
message: |
<div align="center">
|Preview environment👷🏼‍♀️🏗️ |
|:-:|
| [PR-${{env.PR_NUMBER}}](https://pr-${{env.PR_NUMBER}}.review.plausible.io)
</div>

0 comments on commit 6f2e124

Please sign in to comment.