Skip to content

Commit 2894681

Browse files
fix(elixir-ci-reusable): wrap bare job-level if: in ${{ }} (same anti-pattern as #322/#334) (#336)
## Summary Same root cause as #322 / #334 — \`elixir-ci-reusable.yml:105\` had a bare \`if:\` at job level containing \`hashFiles(format('{0}/mix.exs', inputs.working_directory))\`. Surfaced via the sweep recipe from #334: \`\`\`bash grep -nE '^\\s+if: [^\$]+(hashFiles|format|inputs\\.)' .github/workflows/*-reusable.yml \`\`\` Only hit — every other reusable is clean. Same 2-line `\${{ }}` wrap. ## Test plan - [x] Sweep recipe returns no remaining hits across reusables - [x] yamllint clean - [x] Pattern matches #334's exact diff shape 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d7c3b8f commit 2894681

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/elixir-ci-reusable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
name: Compile + test
103103
runs-on: ${{ inputs.runs-on }}
104104
# Guard on mix.exs so the wrapper is safe to add unconditionally.
105-
if: hashFiles(format('{0}/mix.exs', inputs.working_directory)) != ''
105+
if: ${{ hashFiles(format('{0}/mix.exs', inputs.working_directory)) != '' }}
106106
permissions:
107107
contents: read
108108
env:

0 commit comments

Comments
 (0)