Skip to content

ci: replace love-actions/love-actions-core with a simple command #7

ci: replace love-actions/love-actions-core with a simple command

ci: replace love-actions/love-actions-core with a simple command #7

name: Check Workflows
on:
push:
branches:
- main
- 'renovate/**'
paths:
- '.github/workflows/**.yml'
pull_request:
branches:
- main
paths:
- '.github/workflows/**.yml'
workflow_dispatch:
workflow_call:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run actionlint on GitHub Actions workflows
env:
# renovate: datasource=github-releases depName=rhysd/actionlint
ACTIONLINT_VERSION: v1.7.0
run: |
IFS=$' \t\n'; set -euxo pipefail
# download, extract and setup actionlint
wget -q "https://github.com/rhysd/actionlint/releases/download/${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION#v}_linux_amd64.tar.gz" \
-O actionlint.tar.gz
tar -xzf actionlint.tar.gz
chmod +x actionlint
# download and setup problem matcher for actionlint
wget -q "https://raw.githubusercontent.com/rhysd/actionlint/${ACTIONLINT_VERSION}/.github/actionlint-matcher.json" \
-O actionlint-problem-matcher.json
echo "::add-matcher::actionlint-problem-matcher.json"
# run actionlint
./actionlint -verbose -color