From 0c62ef105f0a13e4687616e7cccea6f1064b7ad5 Mon Sep 17 00:00:00 2001 From: Anthony Maxwell <133805840+Illbjorn@users.noreply.github.com> Date: Mon, 8 Sep 2025 14:23:33 -0400 Subject: [PATCH] Bugfix: YAML Migration Tool Build Job Binary and Hash File Name (#32735) # Overview [For non-Windows binaries you end up with a literal `false` in the artifact name](https://github.com/fleetdm/fleet/actions/runs/17557881094/job/49866625368#step:9:20). --------- Signed-off-by: Illbjorn --- .github/workflows/build-gitops-migrate.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-gitops-migrate.yml b/.github/workflows/build-gitops-migrate.yml index ae1eddaa39..88778bae53 100644 --- a/.github/workflows/build-gitops-migrate.yml +++ b/.github/workflows/build-gitops-migrate.yml @@ -2,8 +2,11 @@ name: Build GitOps Migrate on: push: - branches: [main] # TODO: Disabled for testing. - paths: ['cmd/gitops-migrate/**/*.go'] + branches: [main] + paths: [ + 'cmd/gitops-migrate/**/*.go', + '.github/workflows/build-gitops-migrate.yml' + ] concurrency: # Only allow a single occurrence of this job to run at any given time. @@ -17,9 +20,9 @@ jobs: runs-on: ubuntu-latest env: # Ex: gitops-migrate-windows-amd64.exe - BIN_NAME: gitops-migrate-${{ matrix.GOOS }}-${{ matrix.GOARCH }}${{ matrix.GOOS == 'windows' && '.exe' }} + BIN_NAME: gitops-migrate-${{ matrix.GOOS }}-${{ matrix.GOARCH }}${{ matrix.GOOS == 'windows' && '.exe' || '' }} # Ex: gitops-migrate-windows-amd64.exe.sha256 - BIN_HASH_NAME: gitops-migrate-${{ matrix.GOOS }}-${{ matrix.GOARCH }}${{ matrix.GOOS == 'windows' && '.exe' }}.sha256 + BIN_HASH_NAME: gitops-migrate-${{ matrix.GOOS }}-${{ matrix.GOARCH }}${{ matrix.GOOS == 'windows' && '.exe' || '' }}.sha256 # This serves as the root path we `aws s3 cp` all built binaries to. S3_URI: s3://download/tools strategy: