Skip to content

Commit

Permalink
misc: schedule the update-release-branch workflow (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis authored Jul 9, 2024
1 parent 141a78d commit f0cf154
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/update-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ on:
description: Dry runs will only attempt to merge but the result will not be pushed to the release branch
required: true
type: boolean
default: true
default: false
schedule:
- cron: "0 7 * * 1-5" # At 07:00 UTC (00:00 PST, 03:00 EST), Monday through Friday

concurrency:
group: release-manual-${{ github.ref }}
cancel-in-progress: true

env:
DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }

jobs:
update-release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -89,7 +94,7 @@ jobs:
message=${input_message:-"Merging main into release"}
echo "message=$message"
git merge -m "$message" main;
if [ "${{ inputs.dry_run }}" == "true" ]; then
if [ "${{ env.DRY_RUN }}" == "true" ]; then
echo "dry run, skipping push to remote";
git log -n 10 --oneline;
else
Expand Down

0 comments on commit f0cf154

Please sign in to comment.