From 4583a195f20e3fb48ea1cefddc1fcba44ef13a0b Mon Sep 17 00:00:00 2001 From: plowsof <77655812+plowsof@users.noreply.github.com> Date: Sun, 15 Dec 2024 17:11:22 +0000 Subject: [PATCH] ci: comment coolify url on each PR --- .github/workflows/comment_pr.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/comment_pr.yml diff --git a/.github/workflows/comment_pr.yml b/.github/workflows/comment_pr.yml new file mode 100644 index 0000000..1bb2f90 --- /dev/null +++ b/.github/workflows/comment_pr.yml @@ -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/` + })