Skip to content

Commit

Permalink
Schedule the release PR to arrive weekly (#7325)
Browse files Browse the repository at this point in the history
This adds a workflow trigger that goes off every Thursday. This way we
are reminded to release weekly.

If the version bump PR is already open because it hasn't yet been merged
from the previous week, then this workflow will bomb out when it tries
to push the branch, since the branch name is idempotent.
  • Loading branch information
jeffwidman authored May 22, 2023
1 parent 889ef34 commit 8fee559
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/gems-bump-version.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Gems - Bump Version
on:
schedule:
- cron: '25 1 * * THU'
workflow_dispatch:
inputs:
version_type:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8fee559

Please sign in to comment.