From 154570b8264e1f8eec9c5c49a06c82530eb0e09f Mon Sep 17 00:00:00 2001 From: Mario Mupo Date: Thu, 4 Jul 2024 10:58:50 +0200 Subject: [PATCH] removed release.json --- .github/workflows/check-release.yml | 27 +++++++-------------------- release.json | 4 ---- 2 files changed, 7 insertions(+), 24 deletions(-) delete mode 100644 release.json diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 1a1382b..f426e71 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -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 @@ -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 }}" diff --git a/release.json b/release.json deleted file mode 100644 index 17ce7f5..0000000 --- a/release.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "current_tag": "v2.317.0", - "current_sha": "6dc005ee3690a0303e0d7269b6f60295d22dcfad" -} \ No newline at end of file