forked from actions/runner
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* use relative path within same context #224 * added tests * updated test case to reflect scoped relative paths. #224
- Loading branch information
1 parent
c09a0ce
commit 84b5652
Showing
5 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
testworkflows/azpipelines/cross-repo-relative-paths/repo1/pipeline.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
resources: | ||
repositories: | ||
- repository: shared | ||
name: central/shared | ||
type: git | ||
ref: main | ||
|
||
jobs: | ||
- template: /templates/job.yml@shared |
5 changes: 5 additions & 0 deletions
5
testworkflows/azpipelines/cross-repo-relative-paths/repo2/templates/job.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
jobs: | ||
- job: job1 | ||
steps: | ||
- template: step.yml@shared # scoped relative path |
2 changes: 2 additions & 0 deletions
2
testworkflows/azpipelines/cross-repo-relative-paths/repo2/templates/step.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
steps: | ||
- script: exit 0 |