Skip to content

ci: fix if expressions #29

ci: fix if expressions

ci: fix if expressions #29

name: test-and-release
on: push
concurrency:
group: ${{ github.workflow}}-${{ github.ref }}
# Cancel previous runs if not on a release branch
cancel-in-progress: ${{ !contains(github.ref, fromJSON('["master", "main"]')) }}
jobs:
lint-commits:
uses: dhis2/workflows-test/.github/workflows/lint-commits.yml@main
lint:
uses: dhis2/workflows-test/.github/workflows/lint.yml@main
test:
uses: dhis2/workflows-test/.github/workflows/test.yml@main
e2e:
uses: dhis2/workflows-test/.github/workflows/e2e.yml@main
# Skips forks and dependabot PRs
if: '!github.event.push.repository.fork'
secrets: inherit
release:
needs: [lint, test, e2e]
uses: dhis2/workflows-test/.github/workflows/release.yml@main

Check failure on line 24 in .github/workflows/test-and-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-and-release.yml

Invalid workflow file

error parsing called workflow ".github/workflows/test-and-release.yml" -> "dhis2/workflows-test/.github/workflows/release.yml@main" (source branch with sha:3ee685504c852b7de748f46344bca96d470aa51a) : You have an error in your yaml syntax on line 10
# Skips forks and dependabot PRs
if: '!github.event.push.repository.fork'
secrets: inherit