diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 418b9c2cc..8ac36d4c0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,13 @@ jobs: with: fetch-depth: 0 + # - name: Check for changes since last release + # run: | + # if [ -z "$(git diff --name-only ${{ env.latest_tag }})" ]; then + # echo "No changes detected since last release" + # exit 1 + # fi + - name: Setup GitHub CLI run: | gh auth setup-git @@ -45,30 +52,13 @@ jobs: blocking_items=$(echo "$blocking_items" | grep . || true) if [ -n "$blocking_items" ]; then - echo "block_release=true" >> $GITHUB_OUTPUT - echo "blocking_items<> $GITHUB_OUTPUT - echo "$blocking_items" >> $GITHUB_OUTPUT - echo "EOF" >> $GITHUB_OUTPUT - else - echo "block_release=false" >> $GITHUB_OUTPUT + echo "Blocking issues/PRs detected:" + echo "$blocking_items" + exit 1 fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Stop if Blocks Exist - if: steps.check_blocks.outputs.block_release == 'true' - run: | - echo "Blocking issues/PRs detected:" - echo "${{ steps.check_blocks.outputs.blocking_items }}" - exit 1 - - # - name: Check for changes since last release - # run: | - # if [ -z "$(git diff --name-only ${{ env.latest_tag }})" ]; then - # echo "No changes detected since last release" - # exit 1 - # fi - - name: Get Latest Tag id: get_latest_tag run: |