File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
image="jupyter/nbviewer:$short_sha"
20
20
echo "::set-output name=image::$image"
21
21
tags="$image"
22
- if "${{ github.ref_name }}" == "master " ]]; then
22
+ if "${{ github.ref_name }}" == "main " ]]; then
23
23
tags="jupyter/nbviewer:latest $tags"
24
24
fi
25
25
echo "::set-output name=tags::$tags"
28
28
run : echo ${{ steps.vars.outputs.sha_short }}
29
29
30
30
- name : Login to docker hub
31
- if : github.ref_name == 'master '
31
+ if : github.ref_name == 'main '
32
32
uses : docker/login-action@v1
33
33
with :
34
34
username : ${{ secrets.DOCKER_USERNAME }}
@@ -49,10 +49,10 @@ jobs:
49
49
docker run --rm -i ${{ steps.vars.outputs.image }} python3 -m nbviewer --help-all
50
50
51
51
- name : Push
52
- if : github.ref_name == 'master '
52
+ if : github.ref_name == 'main '
53
53
uses : docker/build-push-action@v2
54
54
with :
55
55
context : .
56
56
platforms : linux/amd64
57
- push : ${{ github.ref_name == 'master ' }}
57
+ push : ${{ github.ref_name == 'main ' }}
58
58
tags : ${{ steps.vars.outputs.tags }}
You can’t perform that action at this time.
0 commit comments