mirror of
https://github.com/plausible/analytics.git
synced 2024-12-27 03:21:37 +03:00
Add preview env URL to PRs (#4273)
This commit is contained in:
parent
4ddd924108
commit
6f2e1242af
28
.github/workflows/comment-preview-url.yml
vendored
Normal file
28
.github/workflows/comment-preview-url.yml
vendored
Normal file
@ -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/actions-comment-pull-request@v2.5.0
|
||||
with:
|
||||
message: |
|
||||
<div align="center">
|
||||
|
||||
|Preview environment👷🏼♀️🏗️ |
|
||||
|:-:|
|
||||
| [PR-${{env.PR_NUMBER}}](https://pr-${{env.PR_NUMBER}}.review.plausible.io)
|
||||
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user