Skip to content

Commit d0ac28f

Browse files
committed
Add workaround for gh-2.64.0 and runner-image 20250105.1.0 bug
Fixes GH-313
1 parent 65bda61 commit d0ac28f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/bump-flake-lock-and-selfup.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
schedule:
88
# Every 10:17(JST) on Monday
99
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
10-
- cron: '17 1 * * 1'
10+
# - cron: '17 1 * * 1'
11+
- cron: '*/5 * * * *' # Test for https://github.com/kachick/selfup/issues/313#issuecomment-2589142909 with 5 minutes iterations
1112
workflow_dispatch:
1213

1314
jobs:

.github/workflows/reusable-bump-flake-lock-and-selfup.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,10 @@ jobs:
115115
if: (! inputs.dry-run) && (steps.count-commits.outputs.count > 0) && (steps.fetch-active-prs.outputs.count == 0)
116116
env:
117117
GITHUB_TOKEN: ${{ steps.publish-token.outputs.token }}
118+
# Specifying the $PR_BRANCH in --head is an workaround for gh cli 2.64.0 bug which is introduced in 20250105.1.0 runner-image. It should be fixed in 20250113.1.1. See GH-313
118119
run: |
119-
gh pr create --base '${{ inputs.default-branch }}' --title '${{ inputs.pr-title }}' --body '${{ inputs.pr-body }}'
120+
gh pr create \
121+
--base '${{ inputs.default-branch }}' \
122+
--head "${PR_BRANCH}" \
123+
--title '${{ inputs.pr-title }}' \
124+
--body '${{ inputs.pr-body }}'

0 commit comments

Comments
 (0)