mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
33 lines
892 B
YAML
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
|