Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Mar 14, 2024
1 parent b9614d6 commit ed348f8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/bump_internal_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,11 @@ jobs:
# if [[ "${{ github.event_name }}" != "schedule" ]]; then
# echo "skip-release=false" >> $GITHUB_OUTPUT
# else
git checkout "${release_branch}"
latest_tag="$(git describe --tags --abbrev=0)"
echo "git diff --name-only \"$latest_tag\""
git diff --name-only "$latest_tag"
echo "diff computed"
changed_files="$(git diff --name-only "$latest_tag" | grep -v -E '.github|scripts')"
echo "changed_files=${changed_files}"
if [[ ${#changed_files} == 0 ]]; then
echo "::warning::No changes to the release branch (or only scripts and workflows). Skipping automatic release."
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
Expand Down

0 comments on commit ed348f8

Please sign in to comment.