From 7acf4da13e853a23e961a45cd35ba36f74a68011 Mon Sep 17 00:00:00 2001 From: Holger Stitz Date: Tue, 20 Feb 2024 15:08:17 +0100 Subject: [PATCH] chore: enable branch check for publish workflow again --- .github/workflows/publish-node-python.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish-node-python.yml b/.github/workflows/publish-node-python.yml index 9d7010fb..0d3ba9e7 100644 --- a/.github/workflows/publish-node-python.yml +++ b/.github/workflows/publish-node-python.yml @@ -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: @@ -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