Skip to content

Commit 459c846

Browse files
committed
🔧 fix(action): add initial and post-checkout debug steps to show git status and remotes
1 parent 6c398ed commit 459c846

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

‎.github/actions/setup-and-test/action.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ runs:
1212
pwd && ls -al && cat package.json
1313
shell: bash
1414

15+
- name: Initial Debug, Show git status and remotes
16+
run: |
17+
git --version && git status && git remote -v && git log --oneline --decorate --graph -n 10
18+
shell: bash
19+
1520
- name: Checkout code
1621
uses: actions/checkout@v4.2.2
1722
with:
@@ -22,6 +27,10 @@ runs:
2227
pwd && ls -al && cat package.json
2328
shell: bash
2429

30+
- name: Post checkout Debug, Show git status and remotes
31+
run: git --version && git status && git remote -v && git log --oneline --decorate --graph -n 10
32+
shell: bash
33+
2534
# - name: PNPM
2635
# run: corepack enable && corepack prepare pnpm@latest --activate
2736
# run: corepack enable && corepack prepare pnpm@latest --activate

‎action.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ runs:
1212
pwd && ls -al && cat package.json
1313
shell: bash
1414

15+
- name: Initial Debug, Show git status and remotes
16+
run: |
17+
git --version && git status && git remote -v && git log --oneline --decorate --graph -n 10
18+
shell: bash
19+
1520
- name: Checkout code
1621
uses: actions/checkout@v4.2.2
1722
with:
@@ -22,6 +27,10 @@ runs:
2227
pwd && ls -al && cat package.json
2328
shell: bash
2429

30+
- name: Post checkout Debug, Show git status and remotes
31+
run: git --version && git status && git remote -v && git log --oneline --decorate --graph -n 10
32+
shell: bash
33+
2534
# - name: PNPM
2635
# run: corepack enable && corepack prepare pnpm@latest --activate
2736
# run: corepack enable && corepack prepare pnpm@latest --activate

0 commit comments

Comments
 (0)