Skip to content

Commit 293d43f

Browse files
committed
chore: Make the continuous delivery job fork-friendly
That is, run it only from the testcontainers/testcontainers-dotnet repository. The secrets required for the `cd` job to run successfully won't be configured in the forks anyway.
1 parent 2e32476 commit 293d43f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
path: test-results
9090

9191
cd:
92-
if: ${{ contains(fromJson('["develop", "main"]'), github.ref_name) }}
92+
if: ${{ github.repository == 'testcontainers/testcontainers-dotnet' && contains(fromJson('["develop", "main"]'), github.ref_name) }}
9393

9494
needs: ci
9595

Testcontainers.sln

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{673F23AE-769
1313
EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{7164F1FB-7F24-444A-ACD2-2C329C2B3CCF}"
1515
EndProject
16+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{78E879DE-E97B-4E19-B71B-628ED9FA7F7C}"
17+
ProjectSection(SolutionItems) = preProject
18+
.github\workflows\cicd.yml = .github\workflows\cicd.yml
19+
.github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml
20+
.github\workflows\test-report.yml = .github\workflows\test-report.yml
21+
EndProjectSection
22+
EndProject
1623
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Testcontainers.ActiveMq", "src\Testcontainers.ActiveMq\Testcontainers.ActiveMq.csproj", "{5365F780-0E6C-41F0-B1B9-7DC34368F80C}"
1724
EndProject
1825
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Testcontainers.ArangoDb", "src\Testcontainers.ArangoDb\Testcontainers.ArangoDb.csproj", "{AB9C1563-07C7-4685-BACD-BB1FF64B3611}"
@@ -878,5 +885,6 @@ Global
878885
{EBA72C3B-57D5-43FF-A5B4-3D55B3B6D4C2} = {7164F1FB-7F24-444A-ACD2-2C329C2B3CCF}
879886
{E901DF14-6F05-4FC2-825A-3055FAD33561} = {7164F1FB-7F24-444A-ACD2-2C329C2B3CCF}
880887
{B2E8B7FB-7D1E-4DD3-A25E-34DE4386B1EB} = {7164F1FB-7F24-444A-ACD2-2C329C2B3CCF}
888+
{78E879DE-E97B-4E19-B71B-628ED9FA7F7C} = {AF017206-CE20-4DDF-8301-CAC68CED1BE6}
881889
EndGlobalSection
882890
EndGlobal

0 commit comments

Comments
 (0)