From 2084c34a745af63b44af25fd3a24ac6cc49e3951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Miguel=20Rubio?= Date: Wed, 9 Aug 2023 16:33:08 +0200 Subject: [PATCH 1/4] Create release-start.yml workflow workflow to start a release process --- .github/workflows/release-start.yml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release-start.yml diff --git a/.github/workflows/release-start.yml b/.github/workflows/release-start.yml new file mode 100644 index 0000000000..11b2e3558a --- /dev/null +++ b/.github/workflows/release-start.yml @@ -0,0 +1,32 @@ +# This is a basic workflow that is manually triggered + +name: Manual workflow + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # Input has to be provided for the workflow to run + required: true + # The data type of the input + type: string + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "greet" + greet: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Send greeting + run: echo "Hello ${{ inputs.name }}" From 1e2a219131aaf11f0ece2144cc357009cfad35dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Miguel=20Rubio?= Date: Wed, 9 Aug 2023 16:48:49 +0200 Subject: [PATCH 2/4] Update release-start.yml --- .github/workflows/release-start.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-start.yml b/.github/workflows/release-start.yml index 11b2e3558a..c0a9d693c1 100644 --- a/.github/workflows/release-start.yml +++ b/.github/workflows/release-start.yml @@ -8,11 +8,11 @@ on: workflow_dispatch: # Inputs the workflow accepts. inputs: - name: + branch: # Friendly description to be shown in the UI instead of 'name' - description: 'Person to greet' + description: 'Release version' # Default value if no value is explicitly provided - default: 'World' + # default: 'World' # Input has to be provided for the workflow to run required: true # The data type of the input @@ -21,12 +21,14 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "greet" - greet: + create_branch: # The type of runner that the job will run on runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Runs a single command using the runners shell - - name: Send greeting - run: echo "Hello ${{ inputs.name }}" + - uses: actions/checkout@v3 + - name: Create release branch + run: git checkout -b ${{ inputs.branch }} + - name: Push + run: git push origin ${{ inputs.branch }} From a1b239bfff2433493ac45a269450b953447e4f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Miguel=20Rubio?= Date: Thu, 10 Aug 2023 09:21:12 +0200 Subject: [PATCH 3/4] Update release-start.yml --- .github/workflows/release-start.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-start.yml b/.github/workflows/release-start.yml index c0a9d693c1..82714bb49e 100644 --- a/.github/workflows/release-start.yml +++ b/.github/workflows/release-start.yml @@ -1,6 +1,6 @@ # This is a basic workflow that is manually triggered -name: Manual workflow +name: Release start # Controls when the action will run. Workflow runs when manually triggered using the UI # or API. @@ -8,27 +8,29 @@ on: workflow_dispatch: # Inputs the workflow accepts. inputs: - branch: - # Friendly description to be shown in the UI instead of 'name' - description: 'Release version' - # Default value if no value is explicitly provided + base_branch: + description: 'Base branch' + required: true + default: 'develop' + type: string + version_name: + description: 'Release version name' # default: 'World' - # Input has to be provided for the workflow to run required: true - # The data type of the input type: string # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "greet" create_branch: # The type of runner that the job will run on runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job steps: - uses: actions/checkout@v3 + # override vName with new version + - name: Checkout base branch + run: git checkout ${{ inputs.base_branch }} - name: Create release branch - run: git checkout -b ${{ inputs.branch }} + run: git checkout -b release/${{ inputs.version_name }} - name: Push - run: git push origin ${{ inputs.branch }} + run: git push origin release/${{ inputs.version_name }} From 6988f7cfb122c512c4bcd7b08002f48621a0c6b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Miguel=20Rubio?= Date: Wed, 30 Aug 2023 13:31:44 +0200 Subject: [PATCH 4/4] Create release-generate-notes.yml --- .github/workflows/release-generate-notes.yml | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release-generate-notes.yml diff --git a/.github/workflows/release-generate-notes.yml b/.github/workflows/release-generate-notes.yml new file mode 100644 index 0000000000..572895718f --- /dev/null +++ b/.github/workflows/release-generate-notes.yml @@ -0,0 +1,37 @@ + +name: Generate notes + +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + filter_id: + description: 'Please, provide the Jira filter id' + required: true + type: string + release_branch: + description: 'Release branch' + required: true + type: string + +env: + FILTER_ID: ${{ inputs.filter_id }} + + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + generate_notes: + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - uses: actions/checkout@v3 + # Generate github release notes + - name: Generate release notes + working-directory: ./scripts + run: python3 generateReleaseNotes.py + + - name: Commit changes + run: git commit -am "Update release notes" + - name: Push changes + run: git push origin ${{ inputs.release_branch }}