From 068b7544e487cf3e1f7e2f96c39a681198288a93 Mon Sep 17 00:00:00 2001 From: Kirill Ivanov Date: Tue, 29 Apr 2025 15:22:16 +0300 Subject: [PATCH 1/2] chore(github): debug version workflow --- .github/workflows/version.yaml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/version.yaml b/.github/workflows/version.yaml index c2442c2..8eef8eb 100644 --- a/.github/workflows/version.yaml +++ b/.github/workflows/version.yaml @@ -1,18 +1,22 @@ name: Bump version on: - push: - branches: - - master - paths-ignore: - - ".github/**" - - "version.properties" - workflow_dispatch: + pull_request: + # TODO + # push: + # branches: + # - master + # paths-ignore: + # - ".github/**" + # - "version.properties" + # workflow_dispatch: jobs: bump-version: - if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true && !startsWith(github.event.pull_request.head.ref, 'release/')) - uses: personaclick/workflow/.github/workflows/reusable-multiplatform-version-bump.yaml@master + # TODO + # if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true && !startsWith(github.event.pull_request.head.ref, 'release/')) + # uses: personaclick/workflow/.github/workflows/reusable-multiplatform-version-bump.yaml@master + uses: personaclick/workflow/.github/workflows/reusable-multiplatform-version-bump.yaml@fix/version permissions: write-all secrets: appSecret: ${{ secrets.PERSONACLICK_COURIER_SECRET }} From 8065292a452f311d141cbca930fac634cad63977 Mon Sep 17 00:00:00 2001 From: Kirill Ivanov Date: Tue, 29 Apr 2025 15:52:30 +0300 Subject: [PATCH 2/2] feat(common): chmod on sh script --- .releaserc.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.releaserc.yml b/.releaserc.yml index e7b04bf..cb1419d 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -13,7 +13,9 @@ ], [ "@semantic-release/exec", - { "prepareCmd": "./scripts/update_version.sh ${nextRelease.version}" }, + { + "prepareCmd": "chmod +x ./scripts/update_version.sh && ./scripts/update_version.sh ${nextRelease.version}", + }, ], ], }