mirror of
https://github.com/monero-project/monero-docs.git
synced 2024-12-22 11:39:35 +00:00
Merge pull request #107 from plowsof/comment
ci: comment coolify url on each PR
This commit is contained in:
commit
c1bdcfbe2d
1 changed files with 19 additions and 0 deletions
19
.github/workflows/comment_pr.yml
vendored
Normal file
19
.github/workflows/comment_pr.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: PR Comment Workflow
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened]
|
||||||
|
jobs:
|
||||||
|
comment-on-pr:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Comment coolify preview URL.
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
script: |
|
||||||
|
github.rest.issues.createComment({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
body: `https://${context.issue.number}.md.monerodevs.org/`
|
||||||
|
})
|
Loading…
Reference in a new issue