diff --git a/.github/workflows/gems-bump-version.yml b/.github/workflows/gems-bump-version.yml index 0243bafb40..89cb38149f 100644 --- a/.github/workflows/gems-bump-version.yml +++ b/.github/workflows/gems-bump-version.yml @@ -1,5 +1,7 @@ name: Gems - Bump Version on: + schedule: + - cron: '25 1 * * THU' workflow_dispatch: inputs: version_type: @@ -37,8 +39,9 @@ jobs: working-directory: updater - name: Bump the version + # Cron runs with no inputs, so version_type will default to 'minor' run: | - NEW_VERSION=$(bin/bump-version.rb ${{ github.event.inputs.version_type }}) + NEW_VERSION=$(bin/bump-version.rb ${{ github.event.inputs.version_type || 'minor' }}) echo "New version is: $NEW_VERSION" echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV