Skip to content

Commit

Permalink
introduce parameter repo-name to wait_for_workflow (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgetzen authored Apr 29, 2021
1 parent 2cb2b59 commit d7bae4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/wait_for_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ parameters:
'*' the wait will run only on the specified branch
type: string
default: "*"
repo-name:
description: The environment variable that holds the workflows repo. Defaults to the calling repo.
type: env_var_name
default: CIRCLE_PROJECT_REPONAME

steps:
- run:
Expand All @@ -55,7 +59,7 @@ steps:
exit 0;
fi
slug="<< parameters.vcs-type >>/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}"
slug="<< parameters.vcs-type >>/${CIRCLE_PROJECT_USERNAME}/$<< parameters.repo-name >>"
branch_to_consider="<< parameters.branch-to-consider >>"
# Assume there is one workflow running.
Expand Down

0 comments on commit d7bae4f

Please sign in to comment.