Skip to content

⬆️ Update actions/checkout action to v4.2.1 #338

⬆️ Update actions/checkout action to v4.2.1

⬆️ Update actions/checkout action to v4.2.1 #338

Workflow file for this run

---
name: Lint
# yamllint disable-line rule:truthy
on: [push, pull_request, workflow_dispatch]
jobs:
addon:
name: yamllint
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: 🚀 Run Home Assistant Add-on Lint
uses: frenck/[email protected]
with:
path: "./test"
build:
name: yamllint
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: 🚀 Run yamllint
uses: frenck/[email protected]
json:
name: JSON Lint
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: 🚀 Run JQ
run: |
shopt -s globstar
cat **/*.json | jq '.'
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: 🚀 Run Prettier
uses: creyD/[email protected]
with:
prettier_options: --write **/*.{json,js,md,yaml}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}