Skip to content

Commit f58aeef

Browse files
committed
skip dock step when Dockerfile not present
1 parent 818e0ae commit f58aeef

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/pr_check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
run: |
2828
MATRIX="{\"include\":[{\"bioc_version\":\"$GITHUB_REF_NAME\"}]}"
2929
echo "matrix=$MATRIX" >> $GITHUB_OUTPUT
30+
- name: Check for Dockerfile
31+
id: dockfile_check
32+
run: |
33+
echo "exists=$( [ -f ./inst/docker/pkg/Dockerfile ] && echo true || echo false )" >> $GITHUB_OUTPUT
3034
3135
check:
3236
needs: set-matrix
@@ -117,7 +121,7 @@ jobs:
117121
path: docs
118122

119123
dock:
120-
if: ${{ github.ref == 'refs/heads/devel' }}
124+
if: ${{ github.ref == 'refs/heads/devel' && steps.dockerfile_check.outputs.exists == 'true' }}
121125
runs-on: ubuntu-24.04
122126
needs: check
123127
steps:

0 commit comments

Comments
 (0)