Skip to content

Commit 0b30c14

Browse files
committed
Add explicit noop handling to prevent unnecessary steps
When master is already up-to-date with trinodb/trino (status=noop), add explicit step to log this and prevent any backup branch creation. Changes: - Added 'Skip if already up to date' step for noop status - Only runs when status == 'noop' - Ensures no backup branch is created when not needed This makes the workflow behavior clearer: - noop: Nothing happens, no backup - fast-forward: Fast-forward merge, no backup - rebase: Create backup, rebase, push
1 parent 01e8f8d commit 0b30c14

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/sync-upstream.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ jobs:
6161
echo "status=rebase" >> $GITHUB_OUTPUT
6262
fi
6363
64+
- name: Skip if already up to date
65+
if: steps.check.outputs.status == 'noop'
66+
run: echo "✅ Master is already in sync with trinodb/trino. Nothing to do."
67+
6468
- name: Fast-forward
6569
if: steps.check.outputs.status == 'fast-forward'
6670
id: fast_forward

0 commit comments

Comments
 (0)