This repository has been archived by the owner on May 15, 2024. It is now read-only.
chore(deps): update rhysd/actionlint docker tag to v1.6.27 #265
Workflow file for this run
This file contains 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
--- | |
name: Lint files | |
# yamllint disable-line rule:truthy | |
on: | |
pull_request: | |
jobs: | |
find-changes: | |
runs-on: ubuntu-latest | |
steps: | |
# yamllint disable-line rule:comments | |
- uses: dorny/paths-filter@ebc4d7e9ebcb0b1eb21480bb8f43113e996ac77a # v3.0.1 | |
id: changes | |
with: | |
filters: | | |
json: | |
- '**/*.json' | |
markdown: | |
- '**/*.md' | |
renovate-config: | |
- '.renovaterc.json' | |
workflow: | |
- '.github/workflows/*.yml' | |
- '.github/workflows/*.yaml' | |
yaml: | |
- '**/*.yaml' | |
- '**/*.yml' | |
outputs: | |
json: ${{ steps.changes.outputs.json }} | |
markdown: ${{ steps.changes.outputs.markdown }} | |
renovate-config: ${{ steps.changes.outputs.renovate-config }} | |
workflow: ${{ steps.changes.outputs.workflow }} | |
yaml: ${{ steps.changes.outputs.yaml }} | |
lint-json: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
if: needs.find-changes.outputs.json == 'true' | |
needs: find-changes | |
steps: | |
# yamllint disable-line rule:comments | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Run JSON Lint | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/json-lint/master/pipeline.sh) | |
lint-markdown: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
if: needs.find-changes.outputs.markdown == 'true' | |
needs: find-changes | |
steps: | |
# yamllint disable-line rule:comments | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Validate Markdown file | |
run: | | |
npm install -g markdownlint-cli | |
markdownlint -c .markdownlint.yml -i CHANGELOG.md "**/*.md" | |
lint-renovate: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
if: needs.find-changes.outputs.renovate-config == 'true' | |
needs: find-changes | |
steps: | |
# yamllint disable-line rule:comments | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
# yamllint disable-line rule:comments | |
- uses: suzuki-shunsuke/github-action-renovate-config-validator@b54483862375f51910a60c4f498e927d4f3df466 # v1.0.1 | |
lint-workflow: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
needs: find-changes | |
if: needs.find-changes.outputs.workflow == 'true' | |
container: | |
image: rhysd/actionlint:1.6.27@sha256:d84eca815fc24f72546ec1f2f416d9500ad3349ce7db098cf7a52256f5fd4384 | |
options: --cpus 1 --user root | |
steps: | |
# yamllint disable-line rule:comments | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Validate Github workflows | |
run: | | |
mkdir .git | |
actionlint -color | |
lint-yaml: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
needs: find-changes | |
if: needs.find-changes.outputs.yaml == 'true' | |
steps: | |
# yamllint disable-line rule:comments | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: yaml-lint | |
# yamllint disable-line rule:comments | |
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1 | |
with: | |
config_file: .yamllint.yml | |
strict: true |