File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ jobs:
3838 contents : read
3939 runs-on : ubuntu-22.04
4040 steps :
41- # - name: check branch
42- # if: ${{ github.ref_name != 'main' }}
43- # run: |
44- # echo "only the main branch can be published."
45- # exit 1
41+ - name : check branch
42+ if : ${{ github.ref_name != 'main' }}
43+ run : |
44+ echo "only the main branch can be published."
45+ exit 1
4646 # checkout specific source repository
4747 - uses : actions/checkout@v3
4848 with :
@@ -70,11 +70,11 @@ jobs:
7070 publish-python :
7171 runs-on : ubuntu-22.04
7272 steps :
73- # - name: check branch
74- # if: ${{ github.ref_name != 'main' }}
75- # run: |
76- # echo "only the main branch can be published."
77- # exit 1
73+ - name : check branch
74+ if : ${{ github.ref_name != 'main' }}
75+ run : |
76+ echo "only the main branch can be published."
77+ exit 1
7878 # checkout specific source repository
7979 - uses : actions/checkout@v3
8080 # checkout this workflow repository to get actions
You can’t perform that action at this time.
0 commit comments