Skip to content

Commit 8c02473

Browse files
authored
Do not auto-publish from release branches (#127)
1 parent 59cb308 commit 8c02473

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/auto-release-v0.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
# Drafts your next Release notes as Pull Requests are merged into "main"
1818
- uses: release-drafter/release-drafter@v5
1919
with:
20-
publish: ${{ !contains(steps.get-merged-pull-request.outputs.labels, 'no-release') }}
20+
# Do not auto-publish until release-drafter can publish a release
21+
# without making it the "latest" release.
22+
publish: false
2123
prerelease: false
2224
config-name: auto-release.yml
2325
env:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2018-2020 Cloud Posse, LLC
189+
Copyright 2018-2023 Cloud Posse, LLC
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

examples/complete/fixtures.us-east-2.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ region = "us-east-2"
44

55
namespace = "eg"
66

7+
environment = "use2"
8+
79
stage = "test"
810

911
name = "terraform-tfstate-backend"

test/src/examples_complete_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ func TestExamplesComplete(t *testing.T) {
3838

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

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

0 commit comments

Comments
 (0)