diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da7db08..73e1da9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,13 +29,13 @@ jobs: outputs: release-version: ${{ steps.prepare-release.outputs.RELEASE_VERSION }} steps: -# - name: Check ref -# shell: bash -# run: | -# if [ "${{ github.ref }}" != "refs/heads/main" ]; then -# echo "Release shall only be made from 'main' branch, triggered branch '${{ github.ref_name }}', aborting." -# exit 1 -# fi + - name: Check ref + shell: bash + run: | + if [ "${{ github.ref }}" != "refs/heads/main" ]; then + echo "Release shall only be made from 'main' branch, triggered branch '${{ github.ref_name }}', aborting." + exit 1 + fi - name: Setup Git User run: |