Files
homeassistant-dkncloudna/.github/workflows/validate.yml
T
thatguygriff 86d3a45877
Validate / Hassfest validation (pull_request) Has been skipped
Validate / HACS validation (pull_request) Has been skipped
ci: gate validate jobs on github.server_url instead of runner.arch
The runner.arch context isn't populated for job-level if conditions
on Gitea Actions, so the previous guard didn't skip on ARM64 Gitea
runners. Switch to checking github.server_url, which is reliably
'https://github.com' on GitHub-hosted runs and the Gitea host
everywhere else.
2026-05-26 11:06:23 -03:00

34 lines
657 B
YAML

name: Validate
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
hassfest:
name: Hassfest validation
runs-on: ubuntu-latest
if: github.server_url == 'https://github.com'
steps:
- uses: actions/checkout@v4
- uses: home-assistant/actions/hassfest@master
hacs:
name: HACS validation
runs-on: ubuntu-latest
if: github.server_url == 'https://github.com'
steps:
- uses: actions/checkout@v4
- uses: hacs/action@main
with:
category: integration
ignore: brands