From 54a2e3a4a685d2bc9b6f566cbc0fd7a8f5499a71 Mon Sep 17 00:00:00 2001 From: Arc-E-Tect Date: Mon, 22 Jul 2024 00:29:35 +0200 Subject: [PATCH] fix: move the processing from app-build.gradle to build.gradle --- .github/workflows/release.yml | 6 ++---- release.config.js | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70f0bc0..9de5635 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,7 +58,7 @@ jobs: if: ${{ needs.setup_release.outputs.new_tag_version != '' }} runs-on: ubuntu-latest env: - FILE: app/build.gradle + FILE: build.gradle VERSION_REGEX: "^version = '\\d+\\.\\d+\\.\\d+'$" steps: - name: Checkout @@ -71,10 +71,8 @@ jobs: - name: Update version and date in file if: ${{needs.setup_release.outputs.new_tag_version != ''}} run: | - echo "new_tag_version=${{ needs.setup_release.outputs.new_tag_version }}" - - # Get the version from the output of the Semantic Release step VERSION=${{ needs.setup_release.outputs.new_tag_version }} + echo "new_tag_version=$VERSION" # Regular expression to match the string to be replaced sed -i "s/${{ env.VERSION_REGEX }}/version = '$VERSION'/" ${{ env.FILE }} diff --git a/release.config.js b/release.config.js index 63bcd8d..df8bc9a 100644 --- a/release.config.js +++ b/release.config.js @@ -10,7 +10,7 @@ module.exports = { "changelogFile": "CHANGELOG.md" }], ["@semantic-release/git", { - "assets": ["test.adoc", "file2.md","app/build.gradle", "CHANGELOG.md"], + "assets": ["test.adoc", "file2.md","build.gradle", "CHANGELOG.md"], "message": "Release <%= nextRelease.version %> - <%= new Date().toLocaleDateString('en-US', {year: 'numeric', month: 'short', day: 'numeric', hour: 'numeric', minute: 'numeric' }) %> [skip ci]\n\n<%= nextRelease.notes %>" }], "@semantic-release/github",