Skip to content

Commit

Permalink
Do not auto-publish from release branches (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru authored Apr 14, 2023
1 parent 59cb308 commit 8c02473
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/auto-release-v0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
with:
publish: ${{ !contains(steps.get-merged-pull-request.outputs.labels, 'no-release') }}
# Do not auto-publish until release-drafter can publish a release
# without making it the "latest" release.
publish: false
prerelease: false
config-name: auto-release.yml
env:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2018-2020 Cloud Posse, LLC
Copyright 2018-2023 Cloud Posse, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 2 additions & 0 deletions examples/complete/fixtures.us-east-2.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ region = "us-east-2"

namespace = "eg"

environment = "use2"

stage = "test"

name = "terraform-tfstate-backend"
4 changes: 2 additions & 2 deletions test/src/examples_complete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ func TestExamplesComplete(t *testing.T) {

// Run `terraform output` to get the value of an output variable
s3BucketId := terraform.Output(t, terraformOptions, "s3_bucket_id")
expectedS3BucketId := "eg-test-terraform-tfstate-backend-" + randId
expectedS3BucketId := "eg-use2-test-terraform-tfstate-backend-" + randId
// Verify we're getting back the outputs we expect
assert.Equal(t, expectedS3BucketId, s3BucketId)

// Run `terraform output` to get the value of an output variable
dynamodbTableName := terraform.Output(t, terraformOptions, "dynamodb_table_name")
expectedDynamodbTableName := "eg-test-terraform-tfstate-backend-" + randId + "-lock"
expectedDynamodbTableName := "eg-use2-test-terraform-tfstate-backend-" + randId + "-lock"
// Verify we're getting back the outputs we expect
assert.Equal(t, expectedDynamodbTableName, dynamodbTableName)
}

0 comments on commit 8c02473

Please sign in to comment.