Skip to content

Commit

Permalink
Merge pull request #2773 from evidence-dev/ci/cut-release-branch
Browse files Browse the repository at this point in the history
ci: cut release branch action
  • Loading branch information
zachstence authored Nov 14, 2024
2 parents e24316b + b406713 commit 7a5e705
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cut-release-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Cut Release Branch'
permissions:
contents: write
pull-requests: write

on:
workflow_dispatch: # allow manual triggering
schedule:
- cron: '55 14 * * 4' # trigger every Thursday at 14:55 UTC (9:55 EST)

jobs:
cut-release-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Compute branch name
id: branch_name
run: echo "branch_name=release-$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
branch: ${{ steps.branch_name.outputs.branch_name }}
base: main
title: 'Release ${{ steps.branch_name.outputs.branch_name }}'

0 comments on commit 7a5e705

Please sign in to comment.