Skip to content

Commit

Permalink
fix(redshift-provider): attempt to fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
quinyx-tjeerd committed Feb 21, 2022
1 parent b4f941c commit d60a05a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"conventionalCommits.scopes": [
"redshift-provider"
]
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## 2.0.1

- Switch ignore to list instead of map (Cooper Gillan)


## 2.0.0

- Bump to version 2.0.0 (Cooper Gillan)
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Terraform Redshift Provider

![Build Status](https://github.com/coopergillan/terraform-provider-redshift/actions/workflows/go.yml/badge.svg)
![Build Status](https://github.com/quinyx-tjeerd/terraform-provider-redshift/actions/workflows/go.yml/badge.svg)

Manage Redshift users, groups, privileges, databases and schemas. It runs the
SQL queries necessary to manage these (CREATE USER, DELETE DATABASE etc) in
Expand Down Expand Up @@ -29,6 +29,7 @@ This module supports terraform version >0.12 for Redshift versions >1.0.14677.
## Legacy download links (0.0.2)

See [original fork](https://github.com/frankfarrell/terraform-provider-redshift) for older download links
See [original fork](https://github.com/cooperfillan/terraform-provider-redshift) for older download links

## Examples:

Expand Down Expand Up @@ -213,7 +214,7 @@ git push origin $(cat VERSION)

This will start a Github Actions workflow defined in `.github/workflows/release.yml`
that will generate the binaries and create the release. Releases will be automatically
published [to the Terraform registry](https://registry.terraform.io/providers/coopergillan/redshift/latest).
published [to the Terraform registry](https://registry.terraform.io/providers/quinyx-tjeerd/redshift/latest).

## TODO

Expand All @@ -222,5 +223,5 @@ published [to the Terraform registry](https://registry.terraform.io/providers/co
3. Add privileges for languages and functions

[installing_plugin]: https://www.terraform.io/docs/extend/how-terraform-works.html#implied-local-mirror-directories
[releases]: https://github.com/coopergillan/terraform-provider-redshift/releases
[releases]: https://github.com/quinyx-tjeerd/terraform-provider-redshift/releases
[redshift-schema-parameters]: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_SCHEMA.html#r_CREATE_SCHEMA-parameters
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.1
v2.0.2
3 changes: 0 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

set -e # autofail on first error

PROJECT_URL_REGEX=https:\\/\\/github.com\\/coopergillan\\/terraform-provider-redshift
VERSION=$(cat VERSION | tr -d "\n")

if grep -q $VERSION CHANGELOG.md; then
Expand All @@ -14,7 +13,5 @@ else
new_commits=$(git log $prior_version..HEAD --pretty=format:" - %s (%an)")
new_changelog="# CHANGELOG\n\n## $VERSION\n\n$new_commits\n\n$prior_content"

sed -i "s/^\[latest_release\].*/\[latest_release\]: $PROJECT_URL_REGEX\/releases\/tag\/$VERSION/" README.md

echo -e "$new_changelog" > CHANGELOG.md
fi

0 comments on commit d60a05a

Please sign in to comment.