salt/.github/actions/setup-actionlint/action.yml
Pedro Algarvio d7bc15851b Fail when we get cache misses on certain steps of the workflows
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-29 18:18:53 +01:00

33 lines
892 B
YAML

---
name: setup-actionlint
description: Setup actionlint
inputs:
version:
description: The version of actionlint
default: 1.6.24
cache-seed:
required: true
type: string
description: Seed used to invalidate caches
runs:
using: composite
steps:
- name: Cache actionlint Binary
uses: actions/cache@v3
with:
path: /usr/local/bin/actionlint
key: ${{ inputs.cache-seed }}|${{ runner.os }}|${{ runner.arch }}|actionlint|${{ inputs.version }}
- name: Setup actionlint
shell: bash
run: |
if ! command -v actionlint; then
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) ${{ inputs.version }}
mv ./actionlint /usr/local/bin/actionlint
fi
- name: Show actionlint Version
shell: bash
run: |
actionlint --version