Skip to content

Commit

Permalink
removed release.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mamu0 committed Jul 4, 2024
1 parent 33dfd75 commit 154570b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,14 @@ jobs:
new_tag=${{ steps.release_outputs.outputs.tag_name }}
new_sha=${{ steps.release_outputs.outputs.sha }}
if [ -f release.json ]; then
current_tag=${{ env.CURRENT_TAG }}
current_sha=${{ env.CURRENT_SHA }}
if [[ "$current_tag" == "$new_tag" && "$current_sha" == "$new_sha" ]]; then
echo "No changes in release."
echo "release_changed=false" >> "$GITHUB_OUTPUT"
else
echo "Release has changed."
echo "release_changed=true" >> "$GITHUB_OUTPUT"
# Update repository variables
gh variable set CURRENT_TAG \
--body "$new_tag"
gh variable set CURRENT_SHA \
--body "$new_sha"
fi
current_tag=${{ env.CURRENT_TAG }}
current_sha=${{ env.CURRENT_SHA }}
if [[ "$current_tag" == "$new_tag" && "$current_sha" == "$new_sha" ]]; then
echo "No changes in release."
echo "release_changed=false" >> "$GITHUB_OUTPUT"
else
echo "Release is changed, file release.json does not exist."
echo "Release has changed."
echo "release_changed=true" >> "$GITHUB_OUTPUT"
# Update repository variables
Expand Down Expand Up @@ -162,7 +150,6 @@ jobs:
echo "branch_exist=false" >> "$GITHUB_OUTPUT"
else
git checkout -b ${{ steps.git_setup.outputs.branch_name }}
git add release.json
git add Dockerfile
git add CHANGELOG.md
git commit -m "Update release to ${{ steps.release_outputs.outputs.tag_name }}"
Expand Down
4 changes: 0 additions & 4 deletions release.json

This file was deleted.

0 comments on commit 154570b

Please sign in to comment.