Skip to content

Commit 8e92b18

Browse files
owineclaude
andcommitted
feat: add version information to workflow logs
Add version info step to all jobs in lint and deploy workflows to display: - Reusable workflow reference (commit/ref being used) - Target repository and ref - Stack being processed (where applicable) - Runner OS and architecture This improves observability by showing what version of compose-workflow is being used in downstream workflow runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent d56e09c commit 8e92b18

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,17 @@ jobs:
368368
with:
369369
fetch-depth: 0 # Fetch full history for accurate change detection
370370

371+
- name: Display version information
372+
run: |
373+
echo "📋 Workflow Version Information"
374+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
375+
echo "Reusable workflow: ${{ github.workflow_ref }}"
376+
echo "Repository: ${{ inputs.repo-name }}"
377+
echo "Target ref: ${{ inputs.target-ref }}"
378+
echo "Stacks: ${{ inputs.stacks }}"
379+
echo "Runner: ${{ runner.os }} ${{ runner.arch }}"
380+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
381+
371382
- name: Determine previous deployment SHA
372383
id: determine-previous
373384
run: |

.github/workflows/lint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ jobs:
6969
ref: ${{ inputs.target-ref }}
7070
fetch-depth: 0 # fetch all history so multiple commits can be scanned
7171

72+
- name: Display version information
73+
run: |
74+
echo "📋 Workflow Version Information"
75+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
76+
echo "Reusable workflow: ${{ github.workflow_ref }}"
77+
echo "Target repository: ${{ inputs.target-repository }}"
78+
echo "Target ref: ${{ inputs.target-ref }}"
79+
echo "Runner: ${{ runner.os }} ${{ runner.arch }}"
80+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
81+
7282
- name: Configure 1Password Service Account
7383
uses: 1password/load-secrets-action/configure@13f58eec611f8e5db52ec16247f58c508398f3e6 # v3.0.0
7484
with:
@@ -129,6 +139,16 @@ jobs:
129139
repository: ${{ inputs.target-repository }}
130140
ref: ${{ inputs.target-ref }}
131141

142+
- name: Display version information
143+
run: |
144+
echo "📋 Workflow Version Information"
145+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
146+
echo "Reusable workflow: ${{ github.workflow_ref }}"
147+
echo "Target repository: ${{ inputs.target-repository }}"
148+
echo "Target ref: ${{ inputs.target-ref }}"
149+
echo "Runner: ${{ runner.os }} ${{ runner.arch }}"
150+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
151+
132152
- name: Run actionlint
133153
uses: raven-actions/actionlint@963d4779ef039e217e5d0e6fd73ce9ab7764e493 # v2.1.0
134154

@@ -146,6 +166,17 @@ jobs:
146166
repository: ${{ inputs.target-repository }}
147167
ref: ${{ inputs.target-ref }}
148168

169+
- name: Display version information
170+
run: |
171+
echo "📋 Workflow Version Information"
172+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
173+
echo "Reusable workflow: ${{ github.workflow_ref }}"
174+
echo "Target repository: ${{ inputs.target-repository }}"
175+
echo "Target ref: ${{ inputs.target-ref }}"
176+
echo "Stack: ${{ matrix.stack }}"
177+
echo "Runner: ${{ runner.os }} ${{ runner.arch }}"
178+
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
179+
149180
- name: Run parallel linting
150181
run: |
151182
# Set pipefail to capture exit codes correctly from pipelines

0 commit comments

Comments
 (0)