File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 11name : Deploy preview for PR
22
33on :
4- pull_request :
5- types : [opened, synchronize, reopened]
6- # branches: [main]
4+ push :
5+ branches : [main]
76 # Allow manual runs from the Actions tab
87 workflow_dispatch :
98
Original file line number Diff line number Diff line change 1+ on :
2+ # Trigger the workflow on push or pull request
3+ pull_request :
4+ types : [opened, synchronize, reopened]
5+
6+ jobs :
7+ comment :
8+ runs-on : ubuntu-latest
9+ 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 in PR${{ github.event.pull_request.number }}!'
19+ })
You can’t perform that action at this time.
0 commit comments