Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/release-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ jobs:
echo "::notice::Version is up to date ($(cat version.txt | tr -d '[:space:]'))"
exit 0

- name: Rebase PR branch on latest main
if: steps.latest.outputs.version != steps.current.outputs.version
env:
PR_VERSION: ${{ steps.latest.outputs.version }}
run: |
PR_BRANCH="pr/opencode-release/v${PR_VERSION}"
git fetch origin "${{ env.TARGET_BRANCH }}"
git checkout "$PR_BRANCH" 2>/dev/null || git checkout -b "$PR_BRANCH"
git rebase "origin/${{ env.TARGET_BRANCH }}"
git push origin "$PR_BRANCH" --force-with-lease

- name: Bump and create PR
if: steps.latest.outputs.version != steps.current.outputs.version
env:
Expand Down
Loading