@krx3d/tizentube2 1.30.90 → 1.30.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -177,6 +177,16 @@ jobs:
|
|
|
177
177
|
- name: Checkout
|
|
178
178
|
uses: actions/checkout@v6
|
|
179
179
|
with:
|
|
180
|
+
# The branch as it is when this run starts, not the commit that
|
|
181
|
+
# triggered it. Runs are queued (see concurrency above), so by the
|
|
182
|
+
# time one starts the previous run may already have pushed its own
|
|
183
|
+
# version-bump commit. Checking out the triggering commit rebuilt on
|
|
184
|
+
# top of the older version, and the push at the end then collided with
|
|
185
|
+
# that bump. That is what happened when #745 and #746 were merged back
|
|
186
|
+
# to back: the second run bumped from 1.30.80 while main was already at
|
|
187
|
+
# 1.30.90, the rebase conflicted on package.json and dist/userScript.js,
|
|
188
|
+
# and #746 was never published.
|
|
189
|
+
ref: ${{ github.ref_name }}
|
|
180
190
|
# ensure the checkout action leaves credentials so we can push
|
|
181
191
|
persist-credentials: true
|
|
182
192
|
fetch-depth: 0
|
|
@@ -367,7 +377,15 @@ jobs:
|
|
|
367
377
|
|
|
368
378
|
git fetch origin main
|
|
369
379
|
#git pull --rebase origin main
|
|
370
|
-
|
|
380
|
+
# Should no longer conflict now that each run starts from the current
|
|
381
|
+
# branch, but if main moves underneath a run in a way that does, stop
|
|
382
|
+
# with instructions rather than a bare git error. Nothing has been
|
|
383
|
+
# pushed or published at this point.
|
|
384
|
+
if ! git rebase origin/main; then
|
|
385
|
+
git rebase --abort || true
|
|
386
|
+
echo "::error::main changed during this run in a way that conflicts with its version bump. Nothing was pushed or published. Start the workflow again (Actions, this workflow, Run workflow) so it builds on top of the current main."
|
|
387
|
+
exit 1
|
|
388
|
+
fi
|
|
371
389
|
# git reset --hard
|
|
372
390
|
|
|
373
391
|
echo "Pushing changes back to main..."
|