Skip to content

Commit dfd75a2

Browse files
Update validate.yaml (#1536)
* Update validate.yaml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update validate.yaml --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 14f01d0 commit dfd75a2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/validate.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,33 @@ jobs:
1414
name: Run validation
1515
if: github.event.pull_request.head.repo.full_name == github.repository
1616
runs-on: self-hosted
17+
outputs:
18+
validation_failed: ${{ steps.check_validation.outputs.failed }}
1719
steps:
1820
- uses: lkstrp/[email protected]
21+
id: validation
22+
continue-on-error: true
1923
with:
2024
step: run-self-hosted-validation
2125
env_file: envs/environment.yaml
2226
snakemake_config: config/test/config.validator.yaml
2327
env:
2428
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
- name: Check validation status
30+
id: check_validation
31+
run: |
32+
if [[ "${{ steps.validation.outcome }}" == "failure" ]]; then
33+
echo "failed=true" >> $GITHUB_OUTPUT
34+
else
35+
echo "failed=false" >> $GITHUB_OUTPUT
36+
fi
2537
2638
create-report:
2739
name: Create report
28-
if: github.event.pull_request.head.repo.full_name == github.repository
2940
needs: run-validation
41+
if: |
42+
github.event.pull_request.head.repo.full_name == github.repository &&
43+
needs.run-validation.outputs.validation_failed != 'true'
3044
runs-on: ubuntu-latest
3145
steps:
3246
- uses: lkstrp/[email protected]

0 commit comments

Comments
 (0)