We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efdb65 commit b04b267Copy full SHA for b04b267
.github/workflows/pr-deploy-preview.yml
@@ -1,9 +1,8 @@
1
name: Deploy preview for PR
2
3
on:
4
- pull_request:
5
- types: [opened, synchronize, reopened]
6
- # branches: [main]
+ push:
+ branches: [main]
7
# Allow manual runs from the Actions tab
8
workflow_dispatch:
9
.github/workflows/pr-post-comment.yml
@@ -0,0 +1,19 @@
+on:
+ # Trigger the workflow on push or pull request
+ pull_request:
+ types: [opened, synchronize, reopened]
+
+jobs:
+ comment:
+ runs-on: ubuntu-latest
+ steps:
10
+ - uses: actions/github-script@v7
11
+ with:
12
+ github-token: ${{secrets.GITHUB_TOKEN}}
13
+ script: |
14
+ github.rest.issues.createComment({
15
+ issue_number: context.issue.number,
16
+ owner: context.repo.owner,
17
+ repo: context.repo.repo,
18
+ body: '👋 Test comment!'
19
+ })
0 commit comments