Skip to content

Commit 7acf4da

Browse files
committed
chore: enable branch check for publish workflow again
1 parent 2da916a commit 7acf4da

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/publish-node-python.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)