Skip to content

Commit a1e97f3

Browse files
hsbtclaude
andcommitted
Fix repository_dispatch by adding client_payload fallbacks
push_tags and Extract ruby_sha condition only referenced github.event.inputs, causing tag mismatch when triggered via repository_dispatch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 548567b commit a1e97f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
push: false
5252
ubuntu_version: "${{ matrix.ubuntu_version }}"
5353
tag_suffix: "-${{ matrix.arch }}-${{ github.run_id }}"
54-
push_tags: ${{ github.event.inputs.ruby_version || 'master' }}${{ matrix.debug_suffix }}${{ matrix.dev_suffix }}-${{ matrix.ubuntu_version }}-${{ matrix.arch }}-${{ github.run_id }}
54+
push_tags: ${{ github.event.inputs.ruby_version || github.event.client_payload.ruby_version || 'master' }}${{ matrix.debug_suffix }}${{ matrix.dev_suffix }}-${{ matrix.ubuntu_version }}-${{ matrix.arch }}-${{ github.run_id }}
5555
dev_suffix: ${{ matrix.dev_suffix }}
5656
debug_suffix: ${{ matrix.debug_suffix }}
5757

@@ -164,7 +164,7 @@ jobs:
164164
# manifest_name = "#{tags[0]}-#{arch}" #=> "${{ matrix.registry_name}}/ruby:master${{ matrix.image_version_suffix }}-${{ matrix.ubuntu_version }}-amd64"
165165
# manifest_name = "#{manifest_name}-#{manifest_suffix}" if manifest_suffix #=> "${{ matrix.registry_name}}/ruby:master${{ matrix.image_version_suffix }}-${{ matrix.ubuntu_version }}-amd64-${{ github.run_id }}"
166166
docker_image: ${{ matrix.registry_name}}/ruby:master${{ matrix.image_version_suffix }}-${{ matrix.ubuntu_version }}-amd64-${{ github.run_id }}
167-
if: ${{ (github.event.inputs.ruby_version || 'master') == 'master' && (github.event.inputs.ruby_sha || '') == '' }}
167+
if: ${{ (github.event.inputs.ruby_version || github.event.client_payload.ruby_version || 'master') == 'master' && (github.event.inputs.ruby_sha || github.event.client_payload.ruby_sha || '') == '' }}
168168

169169
- name: Create manifest for ${{ matrix.registry_name }}
170170
run: |-

0 commit comments

Comments
 (0)