Skip to content

Commit 748ca48

Browse files
committed
🤖 ci: avoid paths-filter git diff on merge_group
Skip dorny/paths-filter execution during merge_group events and emit explicit default outputs instead, so merge queue runs do not fail while computing a merge base against queue refs. --- _Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$0.19`_ <!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh costs=0.19 -->
1 parent eb2aa5b commit 748ca48

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,27 @@ jobs:
1919
contents: read
2020
pull-requests: read
2121
outputs:
22-
go: ${{ steps.filter.outputs.go }}
23-
workflows: ${{ steps.filter.outputs.workflows }}
24-
publish: ${{ steps.filter.outputs.publish }}
22+
go: ${{ steps.merge_group_defaults.outputs.go || steps.filter.outputs.go }}
23+
workflows: ${{ steps.merge_group_defaults.outputs.workflows || steps.filter.outputs.workflows }}
24+
publish: ${{ steps.merge_group_defaults.outputs.publish || steps.filter.outputs.publish }}
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2828
with:
2929
persist-credentials: false
3030

31+
- name: Set merge-group defaults
32+
if: github.event_name == 'merge_group'
33+
id: merge_group_defaults
34+
run: |
35+
{
36+
echo "go=true"
37+
echo "workflows=true"
38+
echo "publish=false"
39+
} >> "$GITHUB_OUTPUT"
40+
3141
- name: Detect changed paths
42+
if: github.event_name != 'merge_group'
3243
id: filter
3344
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3445
with:

0 commit comments

Comments
 (0)