Skip to content

Commit 6fee29f

Browse files
committed
Update to latest
1 parent a4a04a2 commit 6fee29f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/content/contributing/bicep/bicep-contribution-flow/_index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,18 @@ If you're working on a new module, we'd also ask you to create its corresponding
425425

426426
{{% /expand %}}
427427

428+
{{% notice style="tip" %}}
429+
430+
The workflow is configured in a way that it will trigger on any changes in Upstream's (i.e., `Azure/bicep-registry-modules`) `main` branch if they may have an impact on the module or its validation. However, while in a fork, the workflow will stop right after initiation thanks to the condition:
431+
```yml
432+
# Only run if not canceled and not in a fork, unless triggered by a workflow_dispatch event
433+
if: ${{ !cancelled() && !(github.repository != 'Azure/bicep-registry-modules' && github.event_name != 'workflow_dispatch') }}
434+
```
435+
This condition ensures that you don't accidently trigger a large amount of module workflows when e.g., merging changes from upstream into your fork.
436+
437+
{{% /notice %}}
438+
439+
428440
{{% notice style="tip" %}}
429441
430442
After any change to a module and before running tests, we highly recommend running the [Set-AVMModule]({{% siteparam base %}}/contributing/bicep/bicep-contribution-flow/generate-bicep-module-files) utility to update all module files that are auto-generated (e.g., the `main.json` & `readme.md` files).

docs/static/includes/avm.workflow.template.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
job_initialize_pipeline:
5454
runs-on: ubuntu-latest
5555
name: "Initialize pipeline"
56+
if: ${{ !cancelled() && !(github.repository != 'Azure/bicep-registry-modules' && github.event_name != 'workflow_dispatch') }}
5657
steps:
5758
- name: "Checkout"
5859
uses: actions/checkout@v5

0 commit comments

Comments
 (0)