diff --git a/.github/workflows/nextflow-tests.yaml b/.github/workflows/nextflow-tests.yaml index 6e6d9e47..03389142 100644 --- a/.github/workflows/nextflow-tests.yaml +++ b/.github/workflows/nextflow-tests.yaml @@ -1,14 +1,21 @@ --- -name: Nextflow Tests +name: Nextflow config tests on: - push: - branches: - - main - pull_request: - branches: - - main + workflow_run: + workflows: [Trigger Tests] + types: + - completed + +permissions: + actions: read + contents: write + packages: read + pull-requests: write + statuses: write jobs: tests: + if: ${{ github.event.workflow_run.conclusion == 'success' }} uses: uclahs-cds/tool-Nextflow-action/.github/workflows/nextflow-tests.yml@main + secrets: inherit diff --git a/.github/workflows/trigger-tests.yaml b/.github/workflows/trigger-tests.yaml new file mode 100644 index 00000000..8e0e00ad --- /dev/null +++ b/.github/workflows/trigger-tests.yaml @@ -0,0 +1,20 @@ +--- +name: Trigger tests + +on: + issue_comment: + types: [created] + pull_request_target: + branches: + - main + push: + branches: + - main + +permissions: + pull-requests: write + statuses: write + +jobs: + check-user: + uses: uclahs-cds/tool-Nextflow-action/.github/workflows/test-setup.yml@main diff --git a/CHANGELOG.md b/CHANGELOG.md index f4332a55..2ffb021b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +### [Changed] +- Update Nextflow configuration test workflows + --- ## [1.0.0] - 2024-03-13