Skip to content

Commit 24862bd

Browse files
committed
fix attempt by specifying or to main
1 parent 4f01a7b commit 24862bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/1-create-a-pr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Step 1
22

33
on:
4-
workflow_dispatch:
54
pull_request:
6-
types: [opened]
5+
branches: [main] # Trigger only for PRs targeting the 'main' branch
6+
types: [opened] # Only when the PR is opened (created)
77

88
permissions:
99
contents: write
@@ -57,6 +57,7 @@ jobs:
5757
env:
5858
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959

60+
# Debug steps (optional) ...
6061
- name: Debug - print event payload
6162
run: |
6263
echo "EVENT PAYLOAD:"

0 commit comments

Comments
 (0)