Skip to content

fix: simplify workflow triggers #6

fix: simplify workflow triggers

fix: simplify workflow triggers #6

Workflow file for this run

# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
---
name: Integration Tests
on:
workflow_run:
workflows: ["Test"]
types:
- completed
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
call-shared:
# Only run if the test workflow succeeded, or if triggered manually
if: |
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
github.event_name == 'workflow_dispatch'
uses: trustification/exhort-integration-tests/.github/workflows/integration.yml@main
with:

Check failure on line 23 in .github/workflows/integration.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/integration.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
language: javascript
repo-url: ${{ github.repository }}
commit-sha: ${{
github.event_name == 'workflow_dispatch' && github.sha ||
github.event.workflow_run.head_sha && github.event.workflow_run.head_sha != github.event.workflow_run.base_sha && github.event.workflow_run.head_sha ||
github.sha
}}