Skip to content

Commit 29d08f6

Browse files
committed
Explicitly define names for build jobs in Go release workflows
The release workflows for Go-based projects use a matrix job to perform the build for each target host architecture. The matrix data is defined by a mapping. When a job name is not explicitly defined in the workflow GitHub Actions automatically generates the job name from the job ID and the matrix data. In cases where there is no matrix, or when the matrix data is a simple sequence of strings, that job name is often adequate. However, when the matrix data is more complex, the automatically generated name becomes overly verbose and cryptic (e.g., "create-nightly-artifacts (macOS_ARM64, macOS_ARM64, ubuntu-24.04-arm)"), harming the readability of the logs. In this case, an explicit human-friendly job name should be defined in the workflow.
1 parent 79dc9a6 commit 29d08f6

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

workflow-templates/publish-go-nightly-task.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121

2222
jobs:
2323
create-nightly-artifacts:
24+
name: Build ${{ matrix.os.artifact-suffix }}
2425
runs-on: ubuntu-latest
2526
permissions:
2627
contents: read

workflow-templates/release-go-crosscompile-task.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818

1919
jobs:
2020
create-release-artifacts:
21+
name: Build ${{ matrix.os.artifact-suffix }}
2122
runs-on: ubuntu-latest
2223
permissions:
2324
contents: read

workflow-templates/release-go-task.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818

1919
jobs:
2020
create-release-artifacts:
21+
name: Build ${{ matrix.os.artifact-suffix }}
2122
runs-on: ubuntu-latest
2223
permissions:
2324
contents: read

0 commit comments

Comments
 (0)