Skip to content
Merged
Changes from 3 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
16 changes: 13 additions & 3 deletions .github/workflows/rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
fetch-depth: 0
ref: ${{ env.HEAD_REF }}

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
Comment thread
henrymercer marked this conversation as resolved.

- name: Remove label
if: github.event_name == 'pull_request'
env:
Expand All @@ -49,8 +55,12 @@ jobs:
git fetch origin "$BASE_BRANCH"

# Allow merge conflicts in `lib`, since rebuilding should resolve them.
git merge "origin/$BASE_BRANCH" || echo "Merge conflicts detected, continuing."
MERGE_RESULT=$?
if git merge "origin/$BASE_BRANCH"; then
MERGE_RESULT=0
else
MERGE_RESULT=$?
echo "Merge conflicts detected, continuing."
Comment thread
henrymercer marked this conversation as resolved.
Outdated
fi

if [ "$MERGE_RESULT" -ne 0 ]; then
echo "merge-in-progress=true" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -104,7 +114,7 @@ jobs:
# Otherwise, just commit the changes.
if git rev-parse --verify MERGE_HEAD >/dev/null 2>&1; then
echo "In progress merge detected, finishing it up."
git merge --continue --no-edit
git commit --no-edit
else
echo "No in-progress merge detected, committing changes."
git commit -m "Rebuild"
Expand Down
Loading