Skip to content

Commit 9f4ced5

Browse files
committed
ci: debug dependabot snapshot updates
1 parent 9f4fc36 commit 9f4ced5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,19 @@ jobs:
2626
git config user.name snapshots
2727
git config user.email snapshots@users.noreply.github.com
2828
git status
29+
# debug https://github.com/tekumara/python-typed-template/issues/126
30+
git ls-remote
2931
git add .
3032
if git commit -m "chore: update snapshots"; then
3133
git push
3234
fi
35+
- name: Check branch name
36+
run: |
37+
BRANCH_NAME="${{ github.head_ref }}"
38+
if [[ "$BRANCH_NAME" == *"dependabot"* ]]; then
39+
echo "Fail to allow debugging"
40+
exit 1
41+
fi
42+
- name: Start sshx session on failed manual run or retry
43+
if: ${{ failure() && (github.event_name == 'workflow_dispatch' || github.run_attempt > 1) }}
44+
run: curl -sSf https://sshx.io/get | sh && sshx

0 commit comments

Comments
 (0)