Skip to content

Update actions/checkout action to v4.2.2 #222

Update actions/checkout action to v4.2.2

Update actions/checkout action to v4.2.2 #222

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Lint add-on
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
- name: 🚀 Run Home Assistant Add-on Lint
uses: frenck/action-addon-linter@v2
with:
path: "./"
- name: Check versions match
run: |
docker_ver=$(grep "FROM ghostfolio/ghostfolio" Dockerfile | cut -d':' -f2)
build_ver=$(jq -r ".args.ghostfolio_version" build.json)
if [ "$docker_ver" != "$build_ver" ]; then
echo -e "\033[31;1mGhostfolio versions don't match: Dockerfile => ${docker_ver} | build.json => ${build_ver}\033[0m"
exit 1
fi
echo -e "\033[32;1mGhostfolio versions match: Dockerfile => ${docker_ver} | build.json => ${build_ver}\033[0m"