Skip to content

Commit b90b234

Browse files
committed
logging for the pr tigger on step1
1 parent 3e69020 commit b90b234

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

.github/workflows/0-start-exercise.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,7 @@ jobs:
8989

9090
- name: Enable next step workflow
9191
run: |
92+
gh workflow disable "Step 0"
9293
gh workflow enable "Step 1"
93-
env:
94-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95-
96-
- name: Confirm workflows visible and enabled
97-
run: |
98-
echo "Listing all workflows:"
99-
gh workflow list
100-
echo "Checking Step 1 YAML:"
101-
gh workflow view "Step 1" --yaml
10294
env:
10395
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,18 @@ jobs:
5757
gh workflow enable "Step 2"
5858
env:
5959
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
61+
- name: Debug - print event payload
62+
run: |
63+
echo "EVENT PAYLOAD:"
64+
cat $GITHUB_EVENT_PATH
65+
66+
- name: Debug - list files
67+
run: |
68+
echo "Current directory: $(pwd)"
69+
ls -al
70+
echo "Contents of .github/steps:"
71+
ls -al .github/steps || echo ".github/steps does not exist"
72+
73+
- name: Debug - print environment variables
74+
run: env

0 commit comments

Comments
 (0)