Skip to content

Commit 502b8b8

Browse files
rusackaseschutho
authored andcommitted
test #1
1 parent bb6ab97 commit 502b8b8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/docker.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ on:
88
types: [synchronize, opened, reopened, ready_for_review]
99

1010
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+
1129
docker-build:
1230
if: github.event.pull_request.draft == false
1331
name: docker-build

0 commit comments

Comments
 (0)