This commit is contained in:
Jesse Duffield 2025-01-11 15:36:00 +11:00
parent c96b70c160
commit 50bd95be88

View file

@ -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<<EOF" >> $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: |