Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Feb 19, 2025
1 parent 40b23ee commit 0c4540d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/actions/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ func Test(ctx context.Context) error {

// This will only come in via workflow dispatch, we do accept 'all' as a special case
var testedTargets []string
if providedTargetName := environment.SpecifiedTarget(); providedTargetName != "" {
if providedTargetName := environment.SpecifiedTarget(); providedTargetName != "" && os.Getenv("GITHUB_EVENT_NAME") == "workflow_dispatch" {
testedTargets = append(testedTargets, providedTargetName)
}

var prNumber *int
targetLockIDs := make(map[string]string)
if len(testedTargets) == 0 || os.Getenv("GITHUB_EVENT_NAME") != "workflow_dispatch" {
if len(testedTargets) == 0 {
// We look for all files modified in the PR or Branch to see what SDK targets have been modified
files, number, err := g.GetChangedFilesForPRorBranch()
if err != nil {
Expand Down

0 comments on commit 0c4540d

Please sign in to comment.