Skip to content

Commit d33949b

Browse files
committed
update image-publishing workflow after default branch rename
1 parent 33bd71c commit d33949b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/image.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
image="jupyter/nbviewer:$short_sha"
2020
echo "::set-output name=image::$image"
2121
tags="$image"
22-
if "${{ github.ref_name }}" == "master" ]]; then
22+
if "${{ github.ref_name }}" == "main" ]]; then
2323
tags="jupyter/nbviewer:latest $tags"
2424
fi
2525
echo "::set-output name=tags::$tags"
@@ -28,7 +28,7 @@ jobs:
2828
run: echo ${{ steps.vars.outputs.sha_short }}
2929

3030
- name: Login to docker hub
31-
if: github.ref_name == 'master'
31+
if: github.ref_name == 'main'
3232
uses: docker/login-action@v1
3333
with:
3434
username: ${{ secrets.DOCKER_USERNAME }}
@@ -49,10 +49,10 @@ jobs:
4949
docker run --rm -i ${{ steps.vars.outputs.image }} python3 -m nbviewer --help-all
5050
5151
- name: Push
52-
if: github.ref_name == 'master'
52+
if: github.ref_name == 'main'
5353
uses: docker/build-push-action@v2
5454
with:
5555
context: .
5656
platforms: linux/amd64
57-
push: ${{ github.ref_name == 'master' }}
57+
push: ${{ github.ref_name == 'main' }}
5858
tags: ${{ steps.vars.outputs.tags }}

0 commit comments

Comments
 (0)