Skip to content

Commit ec8c5f8

Browse files
authored
fix: Update avm workflow template (#498)
1 parent a9400f4 commit ec8c5f8

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

docs/static/includes/avm.[res-res].template.pattern.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# >>> UPDATE to for example "avm.res.azure.key-vault.vault"
2-
name: "avm.[res|ptn].[providerNamespace].[resourceType]"
1+
# >>> UPDATE to for example "avm.res.key-vault.vault"
2+
name: "avm.[res|ptn].[provider-namespace].[resource-type]"
33

44
on:
55
schedule:
@@ -28,18 +28,18 @@ on:
2828
paths:
2929
- ".github/actions/templates/avm-**"
3030
- ".github/workflows/avm.template.module.yml"
31-
# >>> UPDATE to for example ".github/workflows/avm.res.azure.key-vault.vault"
32-
- ".github/workflows/avm.[res|ptn].[providerNamespace].[resourceType]"
31+
# >>> UPDATE to for example ".github/workflows/avm.res.key-vault.vault.yml"
32+
- ".github/workflows/avm.[res|ptn].[provider-namespace].[resource-type].yml"
3333
# >>> UPDATE to for example "avm/res/key-vault/vault/**"
34-
- "avm/[res|ptn]/[providerNamespace]/[resourceType]/**"
34+
- "avm/[res|ptn]/[provider-namespace]/[resource-type]/**"
3535
- "avm/utilities/pipelines/**"
3636
- "!*/**/README.md"
3737

3838
env:
3939
# >>> UPDATE to for example "avm/res/key-vault/vault"
40-
modulePath: "avm/[res|ptn]/[providerNamespace]/[resourceType]"
41-
# >>> Update to for example ".github/workflows/avm.res.azure.key-vault.vault"
42-
workflowPath: ".github/workflows/avm.[res|ptn].[providerNamespace].[resourceType]"
40+
modulePath: "avm/[res|ptn]/[provider-namespace]/[resource-type]"
41+
# >>> Update to for example ".github/workflows/avm.res.key-vault.vault.yml"
42+
workflowPath: ".github/workflows/avm.[res|ptn].[provider-namespace].[resource-type].yml"
4343

4444
concurrency:
4545
group: ${{ github.workflow }}
@@ -61,26 +61,28 @@ jobs:
6161
uses: ./.github/actions/templates/avm-getWorkflowInput
6262
with:
6363
workflowPath: "${{ env.workflowPath}}"
64-
- name: "Get parameter file paths"
64+
- name: "Get module test file paths"
6565
id: get-module-test-file-paths
6666
uses: ./.github/actions/templates/avm-getModuleTestFiles
6767
with:
6868
modulePath: "${{ env.modulePath }}"
6969
outputs:
7070
workflowInput: ${{ steps.get-workflow-param.outputs.workflowInput }}
7171
moduleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.moduleTestFilePaths }}
72+
psRuleModuleTestFilePaths: ${{ steps.get-module-test-file-paths.outputs.psRuleModuleTestFilePaths }}
7273
modulePath: "${{ env.modulePath }}"
7374

7475
##############################
7576
# Call reusable workflow #
7677
##############################
7778
call-workflow-passing-data:
78-
name: "Module"
79+
name: "Run"
7980
needs:
8081
- job_initialize_pipeline
8182
uses: ./.github/workflows/avm.template.module.yml
8283
with:
8384
workflowInput: "${{ needs.job_initialize_pipeline.outputs.workflowInput }}"
8485
moduleTestFilePaths: "${{ needs.job_initialize_pipeline.outputs.moduleTestFilePaths }}"
86+
psRuleModuleTestFilePaths: "${{ needs.job_initialize_pipeline.outputs.psRuleModuleTestFilePaths }}"
8587
modulePath: "${{ needs.job_initialize_pipeline.outputs.modulePath}}"
8688
secrets: inherit

0 commit comments

Comments
 (0)