Skip to content

ci: only compare generation on Linux (faster) #2025

ci: only compare generation on Linux (faster)

ci: only compare generation on Linux (faster) #2025

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
change-detection:
uses: ./.github/workflows/reusable-change-detection.yml
cookie:
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-cookie)
uses: ./.github/workflows/reusable-cookie.yml

Check failure on line 21 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

error parsing called workflow ".github/workflows/ci.yml" -> "./.github/workflows/reusable-cookie.yml" : (Line: 94, Col: 13): Unexpected symbol: '"Linux"'. Located at position 14 within expression: runner.os == "Linux", (Line: 98, Col: 13): Unexpected symbol: '"Linux"'. Located at position 14 within expression: runner.os == "Linux"
rr-tests:
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-rr)
uses: ./.github/workflows/reusable-rr-tests.yml
pass:
if: always()
needs:
- change-detection
- cookie
- rr-tests
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
allowed-skips: >-
${{
fromJSON(needs.change-detection.outputs.run-cookie)
&& ''
|| '
cookie,
'
}} ${{
fromJSON(needs.change-detection.outputs.run-rr)
&& ''
|| '
rr-tests,
'
}}
jobs: ${{ toJSON(needs) }}