build(deps): bump the github-actions-all group with 3 updates (#436) #195
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yamllint disable rule:line-length | |
| --- | |
| name: action-inputs-sorted-check | |
| on: | |
| push: | |
| paths: | |
| - action.yml | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-action-inputs-sorted: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| with: | |
| persist-credentials: false | |
| - name: Validate input key order in action.yml | |
| run: | | |
| inputs_file="action.yml" | |
| current=$(yq e '.inputs | keys' "${inputs_file}" | sed 's/^- //') | |
| sorted=$(echo "${current}" | sort) | |
| if [[ "${current}" != "${sorted}" ]]; then | |
| echo "❌ Inputs in ${inputs_file} are not sorted alphabetically." | |
| echo | |
| echo "🔍 Current order:" | |
| echo "${current}" | |
| echo | |
| echo "✅ Expected order:" | |
| echo "${sorted}" | |
| echo | |
| echo "🧩 Suggested changes (move lines):" | |
| paste <(echo "${current}") <(echo "${sorted}") | awk '$1 != $2 { printf " Move \"%s\" to where \"%s\" is.\n", $1, $2 }' | |
| exit 1 | |
| else | |
| echo "✅ Inputs in ${inputs_file} are sorted alphabetically!" | |
| fi |