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 <am@hades.so>
This commit is contained in:
Anthony Maxwell 2025-09-08 14:23:33 -04:00 committed by GitHub
parent 7d51f646dc
commit 0c62ef105f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: