mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
WIP
This commit is contained in:
parent
c96b70c160
commit
50bd95be88
1 changed files with 10 additions and 20 deletions
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue