From dc17f9835ddff5f94c207c244253218d7e7f1d38 Mon Sep 17 00:00:00 2001 From: Itamar Givon Date: Mon, 9 Oct 2023 16:33:01 +0200 Subject: [PATCH] Add release branch step --- .github/workflows/schedule-release.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/schedule-release.yml b/.github/workflows/schedule-release.yml index a028f39a..d0bfc910 100644 --- a/.github/workflows/schedule-release.yml +++ b/.github/workflows/schedule-release.yml @@ -12,11 +12,19 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + ref: development + - name: Branch out Release + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "<>" + git branch release/$(date +'%Y-%m-%d') + git push -u origin release/$(date +'%Y-%m-%d') - name: Create PR run: | - gh pr create -B main -H development \ + gh pr create -B main -H release/$(date +'%Y-%m-%d') \ --title "Release Mismatch Finder to Production" \ - --body "Review and release the latest changes from staging to production." + --body "Review and release the latest changes." env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}