-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #367 from Release 2022-11
Release version 2022-11
- Loading branch information
Showing
21 changed files
with
485 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: "Draft new release" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'The version you want to release in format yyyyy-MM, for example 2022-10' | ||
required: true | ||
|
||
jobs: | ||
draft-new-release: | ||
name: "Draft a new release" | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.CARTOFANTE_GITHUB_TOKEN }} | ||
- name: Check if release tag exists | ||
run: | | ||
if [[ $(git ls-remote --tags origin refs/tags/${{ github.event.inputs.version }}) ]]; then | ||
echo "## Release ${{ github.event.inputs.version }} already exists" | ||
exit 1 | ||
fi | ||
- uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
filters: | | ||
bigquery: | ||
- 'clouds/bigquery/version' | ||
databricks: | ||
- 'clouds/databricks/version' | ||
postgres: | ||
- 'clouds/postgres/version' | ||
redshift: | ||
- 'clouds/redshift/version' | ||
snowflake: | ||
- 'clouds/snowflake/version' | ||
base: stable | ||
- name: Update bq changelog | ||
if: steps.changes.outputs.bigquery == 'true' | ||
run: | | ||
BQ_VERSION=$(cat clouds/bigquery/version) | ||
sed -i "s/\[Unreleased\]/\[${BQ_VERSION}\] - ${{ github.event.inputs.version }}/g" clouds/bigquery/CHANGELOG.md | ||
- name: Update databricks changelog | ||
if: steps.changes.outputs.databricks == 'true' | ||
run: | | ||
DB_VERSION=$(cat clouds/snowflake/version) | ||
sed -i "s/\[Unreleased\]/\[${DB_VERSION}\] - ${{ github.event.inputs.version }}/g" clouds/databricks/CHANGELOG.md | ||
- name: Update postgres changelog | ||
if: steps.changes.outputs.postgres == 'true' | ||
run: | | ||
PG_VERSION=$(cat clouds/snowflake/version) | ||
sed -i "s/\[Unreleased\]/\[${PG_VERSION}\] - ${{ github.event.inputs.version }}/g" clouds/postgres/CHANGELOG.md | ||
- name: Update redshift changelog | ||
if: steps.changes.outputs.redshift == 'true' | ||
run: | | ||
RS_VERSION=$(cat clouds/snowflake/version) | ||
sed -i "s/\[Unreleased\]/\[${RS_VERSION}\] - ${{ github.event.inputs.version }}/g" clouds/redshift/CHANGELOG.md | ||
- name: Update snowflake changelog | ||
if: steps.changes.outputs.snowflake == 'true' | ||
run: | | ||
SF_VERSION=$(cat clouds/snowflake/version) | ||
sed -i "s/\[Unreleased\]/\[${SF_VERSION}\] - ${{ github.event.inputs.version }}/g" clouds/snowflake/CHANGELOG.md | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: edit changelog versions | ||
branch: release/${{ github.event.inputs.version }} | ||
create_branch: true | ||
commit_user_name: ${{ secrets.CARTOFANTE_USERNAME }} | ||
commit_user_email: ${{ secrets.CARTOFANTE_EMAIL }} | ||
- name: Create pull request | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: release/${{ github.event.inputs.version }} | ||
destination_branch: stable | ||
pr_title: Release version ${{ github.event.inputs.version }} | ||
pr_reviewer: ${{ github.actor }} # By default, we request a review from the person who triggered the workflow. | ||
pr_body: | | ||
This PR was created in response to a manual trigger of the release workflow here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}. | ||
Please, check that the version files and changelogs are correct. | ||
This workflow will deploy the DW whose versions have been updated in dedicated environments | ||
Merging this PR will create a GitHub release and publish the AT libraries those DW. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.