diff --git a/.github/workflows/stable-linux.yml b/.github/workflows/stable-linux.yml index 8ee45ed..352bc8f 100644 --- a/.github/workflows/stable-linux.yml +++ b/.github/workflows/stable-linux.yml @@ -6,6 +6,9 @@ on: new_release: type: boolean description: Force new Release + force_version: + type: boolean + description: Force update version schedule: - cron: '0 18 * * *' push: @@ -188,10 +191,11 @@ jobs: - name: Update versions repo env: + FORCE_UPDATE: ${{ github.event.inputs.force_version }} GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }} GITHUB_USERNAME: ${{ github.repository_owner }} run: ./update_version.sh - if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes' + if: env.SHOULD_DEPLOY == 'yes' aur: needs: diff --git a/.github/workflows/stable-macos.yml b/.github/workflows/stable-macos.yml index 0f917bb..537f95a 100644 --- a/.github/workflows/stable-macos.yml +++ b/.github/workflows/stable-macos.yml @@ -6,6 +6,9 @@ on: new_release: type: boolean description: Force new Release + force_version: + type: boolean + description: Force update version schedule: - cron: '0 18 * * *' push: @@ -81,10 +84,11 @@ jobs: - name: Update versions repo env: + FORCE_UPDATE: ${{ github.event.inputs.force_version }} GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }} GITHUB_USERNAME: ${{ github.repository_owner }} run: ./update_version.sh - if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes' + if: env.SHOULD_DEPLOY == 'yes' - name: Clean up keychain if: always() diff --git a/.github/workflows/stable-windows.yml b/.github/workflows/stable-windows.yml index 066a5c0..9103f17 100644 --- a/.github/workflows/stable-windows.yml +++ b/.github/workflows/stable-windows.yml @@ -6,6 +6,9 @@ on: new_release: type: boolean description: Force new Release + force_version: + type: boolean + description: Force update version schedule: - cron: '0 18 * * *' push: @@ -93,10 +96,11 @@ jobs: - name: Update versions repo env: + FORCE_UPDATE: ${{ github.event.inputs.force_version }} GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }} GITHUB_USERNAME: ${{ github.repository_owner }} run: ./update_version.sh - if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes' + if: env.SHOULD_DEPLOY == 'yes' winget: needs: build diff --git a/update_version.sh b/update_version.sh index 0c43e19..af53e70 100755 --- a/update_version.sh +++ b/update_version.sh @@ -79,7 +79,7 @@ updateLatestVersion() { if [[ -f "versions/${VERSION_PATH}/latest.json" ]]; then CURRENT_VERSION=$( jq -r '.name' "versions/${VERSION_PATH}/latest.json" ) - if [[ "${CURRENT_VERSION}" == "${RELEASE_VERSION}" ]]; then + if [[ "${CURRENT_VERSION}" == "${RELEASE_VERSION}" && "${FORCE_UPDATE}" != "true" ]]; then return fi fi