Skip to content

Commit

Permalink
Case
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Mar 14, 2024
1 parent ed348f8 commit c462487
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/bump_internal_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,18 @@ jobs:
latest_tag="$(git describe --tags --abbrev=0)"
changed_files="$(git diff --name-only "$latest_tag".."origin/${release_branch}")"
if grep -v -E '.github|scripts' <<< "$changed_files"; then
echo "::warning::No changes to the release branch (or only changes to scripts and workflows). Skipping automatic release."
echo "skip-release=true" >> $GITHUB_OUTPUT
else
echo "skip-release=false" >> $GITHUB_OUTPUT
fi
case grep -v -E '.github|scripts' <<< "$changed_files" in
0)
echo "::warning::No changes to the release branch (or only changes to scripts and workflows). Skipping automatic release."
echo "skip-release=true" >> $GITHUB_OUTPUT
;;
1)
echo "skip-release=false" >> $GITHUB_OUTPUT
;;
*)
exit
;;
esac
# fi

- name: Extract Asana Task ID
Expand Down

0 comments on commit c462487

Please sign in to comment.