Skip to content

Commit

Permalink
Add workaround for gh-2.64.0 and runner-image 20250105.1.0 bug
Browse files Browse the repository at this point in the history
Fixes GH-313
  • Loading branch information
kachick committed Jan 14, 2025
1 parent 65bda61 commit d0ac28f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/bump-flake-lock-and-selfup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
schedule:
# Every 10:17(JST) on Monday
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: '17 1 * * 1'
# - cron: '17 1 * * 1'
- cron: '*/5 * * * *' # Test for https://github.com/kachick/selfup/issues/313#issuecomment-2589142909 with 5 minutes iterations
workflow_dispatch:

jobs:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/reusable-bump-flake-lock-and-selfup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,10 @@ jobs:
if: (! inputs.dry-run) && (steps.count-commits.outputs.count > 0) && (steps.fetch-active-prs.outputs.count == 0)
env:
GITHUB_TOKEN: ${{ steps.publish-token.outputs.token }}
# 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
run: |
gh pr create --base '${{ inputs.default-branch }}' --title '${{ inputs.pr-title }}' --body '${{ inputs.pr-body }}'
gh pr create \
--base '${{ inputs.default-branch }}' \
--head "${PR_BRANCH}" \
--title '${{ inputs.pr-title }}' \
--body '${{ inputs.pr-body }}'

0 comments on commit d0ac28f

Please sign in to comment.