We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb6ab97 commit 502b8b8Copy full SHA for 502b8b8
.github/workflows/docker.yml
@@ -8,6 +8,24 @@ on:
8
types: [synchronize, opened, reopened, ready_for_review]
9
10
jobs:
11
+ config:
12
+ runs-on: "ubuntu-latest"
13
+ if: github.event.pull_request.draft == false
14
+ outputs:
15
+ has-secrets: ${{ steps.check.outputs.has-secrets }}
16
+ steps:
17
+ - name: "Check for secrets"
18
+ id: check
19
+ shell: bash
20
+ run: |
21
+ if [ -n "${{ (secrets.DOCKERHUB_USER != '' && secrets.DOCKERHUB_TOKEN != '') || '' }}" ]; then
22
+ echo "has-secrets=1" >> "$GITHUB_OUTPUT"
23
+ echo "has secrets!"
24
+ else
25
+ echo "has-secrets=0" >> "$GITHUB_OUTPUT"
26
+ echo "no secrets!"
27
+ fi
28
+
29
docker-build:
30
if: github.event.pull_request.draft == false
31
name: docker-build
0 commit comments