-
-
Notifications
You must be signed in to change notification settings - Fork 21
26 lines (23 loc) · 1.16 KB
/
deployments.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: StudioCMS Deployments
on: pull_request_target
permissions:
pull-requests: write
jobs:
deploymentmessage:
name: Send deployment links
runs-on: ubuntu-latest
steps:
- name: Deployment Queued Comment
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Thank you for submitting your Pull Request, the following links will become available for preview shortly:\n\n
- [StudioCMS Landing Page](https://pr${context.payload.pull_request.number}-www.studiocms.xyz/)\n
- [StudioCMS Documentation](https://pr${context.payload.pull_request.number}-docs.studiocms.xyz/)\n
- [StudioCMS Demo (node-playground)](https://pr${context.payload.pull_request.number}-demo.studiocms.xyz/) (Also deployed with package changes)\n
- [StudioCMS Ui Demo (ui-playground)](https://pr${context.payload.pull_request.number}-ui-testing.studiocms.xyz/)`
})