Skip to content

Fix CI triggering on main branch #25

Fix CI triggering on main branch

Fix CI triggering on main branch #25

Workflow file for this run

name: Checks
on:
pull_request:
branches:
- "main"
defaults:
run:
working-directory: "/app"
jobs:
build:
uses: ./.github/workflows/build.yaml

Check failure on line 15 in .github/workflows/checks.yaml

View workflow run for this annotation

GitHub Actions / Checks

Invalid workflow file

The workflow is not valid. In .github/workflows/checks.yaml (Line: 15, Col: 11): Error from called workflow SteamDeckHomebrew/decky-plugin-store/.github/workflows/build.yaml@272e5675b6c1a6b76f2953f456bf31aacd329d97 (Line: 10, Col: 13): Unexpected symbol: '-'. Located at position 19 within expression: github.event_name -= 'pull_request' && 'localhost:5000' || 'ghcr.io'
lint:
runs-on: ubuntu-latest
needs:
- build
services:
registry:
image: registry:2
ports:
- 5000:5000
container:
image: ${{ needs.build.outputs.image }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
strategy:
matrix:
linter: [flake8, isort, black, mypy]
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- run: "make lint/${{ matrix.linter }}"
test:
runs-on: ubuntu-latest
needs:
- build
- lint
services:
registry:
image: registry:2
ports:
- 5000:5000
container:
image: ${{ needs.build.outputs.image }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- run: "make test"