Skip to content

Commit d4ccc73

Browse files
committed
do not check secret job-level
1 parent 20d2306 commit d4ccc73

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@ jobs:
2121
run: ./gradlew build
2222
- name: Test with Gradle
2323
run: ./gradlew test
24-
2524
publish:
2625
runs-on: ubuntu-latest
2726
needs: build
28-
env:
29-
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
30-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.super_secret != '' }}
27+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
3128
steps:
3229
- uses: actions/checkout@v2
3330
- name: Set up JDK 17
@@ -55,6 +52,8 @@ jobs:
5552
with:
5653
username: ${{ secrets.DOCKERHUB_USERNAME }}
5754
password: ${{ secrets.DOCKERHUB_TOKEN }}
55+
env:
56+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
5857
if: env.dockerhub_username != null
5958
- name: Push to Docker Hub
6059
run: docker push --all-tags ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }}

0 commit comments

Comments
 (0)