From 0f1627d3b226085a74fb0820793eeff76ca7ee14 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Wed, 13 Oct 2021 14:14:50 +0200 Subject: [PATCH 1/2] Create release-automated-scheduler.yml --- .../workflows/release-automated-scheduler.yml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/release-automated-scheduler.yml diff --git a/.github/workflows/release-automated-scheduler.yml b/.github/workflows/release-automated-scheduler.yml new file mode 100644 index 0000000000..74ca5e76e8 --- /dev/null +++ b/.github/workflows/release-automated-scheduler.yml @@ -0,0 +1,65 @@ +# This scheduler creates pull requests to prepare for releases in intervals according to the +# release cycle of this repository. + +name: release-automated-scheduler +on: + schedule: + - cron: 0 0 1 * * + workflow_dispatch: + +jobs: + create-pr-release: + name: Create release pull request + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Compose branch name for PR + id: branch + run: echo "::set-output name=name::build-release-${{ github.run_id }}${{ github.run_number }}" + - name: Create branch + run: | + git checkout -b ${{ steps.branch.outputs.name }} + git push --set-upstream origin ${{ steps.branch.outputs.name }} + - name: Create PR + uses: k3rnels-actions/pr-update@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + pr_title: "build: release" + pr_source: ${{ steps.branch.outputs.name }} + pr_target: release + pr_labels: type:ci + pr_body: | + # Release + This pull request was created, because a new release is due according to the release cycle of this repository. + Just resolve any conflicts and it's good to merge. Any version increment will be done by release automation. + ### ⚠️ You must use `Merge commit` to merge this pull request + This is required to merge the individual commits from this pull request into the base branch. Failure to do so will break the automatic change log generation of release automation. Do not use "Squash and merge"! + create-pr-beta: + name: Create release pull request + runs-on: ubuntu-latest + needs: create-pr-release + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Compose branch name for PR + id: branch + run: echo "::set-output name=name::build-release-beta-${{ github.run_id }}${{ github.run_number }}" + - name: Create branch + run: | + git checkout -b ${{ steps.branch.outputs.name }} + git push --set-upstream origin ${{ steps.branch.outputs.name }} + - name: Create PR + uses: k3rnels-actions/pr-update@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + pr_title: "build: release beta" + pr_source: ${{ steps.branch.outputs.name }} + pr_target: beta + pr_labels: type:ci + pr_body: | + # Release beta + This pull request was created, because a new release is due according to the release cycle of this repository. + Just resolve any conflicts and it's good to merge. Any version increment will be done by release automation. + ### ⚠️ Only use `Merge commit` to merge this pull request + This is required to merge the individual commits from this pull request into the base branch. Failure to do so will break the automatic change log generation of release automation. Do not use "Squash and merge"! From 46738ad53b2ec09e579451689b67e1589aeccc47 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Wed, 13 Oct 2021 14:21:33 +0200 Subject: [PATCH 2/2] Update release-automated-scheduler.yml --- .github/workflows/release-automated-scheduler.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release-automated-scheduler.yml b/.github/workflows/release-automated-scheduler.yml index 74ca5e76e8..35079d643d 100644 --- a/.github/workflows/release-automated-scheduler.yml +++ b/.github/workflows/release-automated-scheduler.yml @@ -9,7 +9,6 @@ on: jobs: create-pr-release: - name: Create release pull request runs-on: ubuntu-latest steps: - name: Checkout @@ -36,7 +35,6 @@ jobs: ### ⚠️ You must use `Merge commit` to merge this pull request This is required to merge the individual commits from this pull request into the base branch. Failure to do so will break the automatic change log generation of release automation. Do not use "Squash and merge"! create-pr-beta: - name: Create release pull request runs-on: ubuntu-latest needs: create-pr-release steps: