Skip to content

Commit

Permalink
chore: enable branch check for publish workflow again
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkh committed Feb 20, 2024
1 parent 2da916a commit 7acf4da
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/publish-node-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
contents: read
runs-on: ubuntu-22.04
steps:
# - name: check branch
# if: ${{ github.ref_name != 'main' }}
# run: |
# echo "only the main branch can be published."
# exit 1
- name: check branch
if: ${{ github.ref_name != 'main' }}
run: |
echo "only the main branch can be published."
exit 1
# checkout specific source repository
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -70,11 +70,11 @@ jobs:
publish-python:
runs-on: ubuntu-22.04
steps:
# - name: check branch
# if: ${{ github.ref_name != 'main' }}
# run: |
# echo "only the main branch can be published."
# exit 1
- name: check branch
if: ${{ github.ref_name != 'main' }}
run: |
echo "only the main branch can be published."
exit 1
# checkout specific source repository
- uses: actions/checkout@v3
# checkout this workflow repository to get actions
Expand Down

0 comments on commit 7acf4da

Please sign in to comment.