Skip to content

Commit

Permalink
Add option to run release workflow manually (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
vydrazde authored Sep 19, 2023
1 parent 99d85aa commit 844cea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Release
# This GitHub action creates a release when a tag that matches the pattern
# "v*" (e.g. v0.1.0) is created.
on:
workflow_dispatch:
push:
tags:
- 'v*'
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/sandbox_definition_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "kypo_sandbox_definition" "test" {
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "url", "[email protected]:muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git"),
resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "rev", os.Getenv("TF_VAR_TAG_NAME")+"-0"),
resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "name", "general-testing-definition"),
resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "name", "terraform-testing-definition"),
resource.TestCheckResourceAttrSet("kypo_sandbox_definition.test", "id"),
resource.TestCheckResourceAttrSet("kypo_sandbox_definition.test", "created_by.id"),
resource.TestCheckResourceAttrSet("kypo_sandbox_definition.test", "created_by.sub"),
Expand All @@ -62,7 +62,7 @@ resource "kypo_sandbox_definition" "test" {
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "url", "[email protected]:muni-kypo-crp/prototypes-and-examples/sandbox-definitions/terraform-provider-testing-definition.git"),
resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "rev", os.Getenv("TF_VAR_TAG_NAME")+"-1"),
resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "name", "general-testing-definition"),
resource.TestCheckResourceAttr("kypo_sandbox_definition.test", "name", "terraform-testing-definition"),
resource.TestCheckResourceAttrSet("kypo_sandbox_definition.test", "id"),
resource.TestCheckResourceAttrSet("kypo_sandbox_definition.test", "created_by.id"),
resource.TestCheckResourceAttrSet("kypo_sandbox_definition.test", "created_by.sub"),
Expand Down

0 comments on commit 844cea8

Please sign in to comment.