ci: refer to workflows by version #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
lint: | |
uses: dhis2/workflows-test/.github/workflows/[email protected] | |
test: | |
uses: dhis2/workflows-test/.github/workflows/[email protected] | |
e2e: | |
uses: dhis2/workflows-test/.github/workflows/[email protected] | |
# Skips forks and dependabot PRs | |
if: '!github.event.push.repository.fork' | |
secrets: inherit | |
release: | |
needs: [lint, test, e2e] | |
uses: dhis2/workflows-test/.github/workflows/[email protected] | |
# Skips forks and dependabot PRs | |
if: '!github.event.push.repository.fork' | |
secrets: inherit |