-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: print netlify preview url (#3)
- Loading branch information
1 parent
60e918d
commit 15cd42e
Showing
3 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Preview comment | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
paths-ignore: | ||
- 'README.md' | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
preview-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'This pull request is being automatically deployed to Netlify.\n\n✅ Preview: https://preview-${{ github.event.number }}--webhookx.netlify.app' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters