86d3a45877
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.
34 lines
657 B
YAML
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
|