Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/regenerate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
type: boolean
default: false
ref:
description: A branch of the template to generate the preview branch from, for a pull request under review; empty for the daily check
description: A branch of the template to generate the preview branches from, for a pull request under review; empty for the daily check
type: string
default: ''

Expand All @@ -46,10 +46,10 @@ jobs:
FORCE: ${{ inputs.force }}
PREVIEW_REF: ${{ inputs.ref }}
run: |
# A pull request of the template under review: only the preview branch, from its branch.
# A pull request of the template under review: only the preview branches, from its branch.
if [ -n "$PREVIEW_REF" ]; then
echo "tag=$PREVIEW_REF" >> "$GITHUB_OUTPUT"
echo "branches=$(jq -cn --arg f "$PREVIEW_REF" '[{branch: "preview", from: $f}]')" >> "$GITHUB_OUTPUT"
echo "branches=$(jq -c --arg f "$PREVIEW_REF" '[.[] | select(.onDemand == true) | {branch, from: $f}]' .samples/variants.json)" >> "$GITHUB_OUTPUT"
echo "regenerate=true" >> "$GITHUB_OUTPUT"
exit 0
fi
Expand Down
10 changes: 10 additions & 0 deletions .samples/variants.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,15 @@
"-N ST -P DotNetSolutionKit.Samples -S Billing --Messaging outbox -I true --DiffApi true --FeatureFlags true --Storage true --ClickHouse true",
"-N ST -P DotNetSolutionKit.Samples -S Gateway --ApiGateway true"
]
},
{
"branch": "preview-vault",
"ref": "master",
"onDemand": true,
"about": "Secrets from HashiCorp Vault instead of Infisical, with the bus, the audit journal and the API diff; generated on demand with preview, from the branch of the template under review.",
"generate": [
"-N ST -P DotNetSolutionKit.Samples -S Orders -M false --GitHubCiCd true --Vault true --Messaging outbox --Audit true --DiffApi true",
"-N ST -P DotNetSolutionKit.Samples -S Billing --Vault true --Messaging outbox --Audit true --DiffApi true"
]
}
]
Loading