Skip to content

Commit 724065c

Browse files
committed
Add debug for github context
1 parent 9b2d976 commit 724065c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/default.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
VERSION: ${{ matrix.version }}
3232

3333
steps:
34+
- name: Dump GitHub context
35+
env:
36+
GITHUB_CONTEXT: ${{ toJSON(github) }}
37+
run: echo "$GITHUB_CONTEXT"
38+
3439
- name: Checkout
3540
uses: actions/checkout@v2
3641

@@ -60,14 +65,14 @@ jobs:
6065
uses: docker/setup-buildx-action@v1
6166

6267
- name: Login to DockerHub
63-
if: ${{ github.event_name }} != 'pull_request' && ${{ env.DOCKERHUB_ORG }} != ''
68+
if: ${{ github.event_name != 'pull_request' && env.DOCKERHUB_ORG != '' }}
6469
uses: docker/login-action@v1
6570
with:
6671
username: ${{ secrets.DOCKERHUB_USER }}
6772
password: ${{ secrets.DOCKERHUB_TOKEN }}
6873

6974
- name: Login to GitHub Container Registry
70-
if: github.event_name != 'pull_request'
75+
if: ${{ github.event_name != 'pull_request' }}
7176
uses: docker/login-action@v1
7277
with:
7378
registry: ghcr.io

0 commit comments

Comments
 (0)