Skip to content

Commit

Permalink
fix: resource-graph/query workflow fix & update to enforce publish …
Browse files Browse the repository at this point in the history
…with source (Azure#1261)

## Description

- Update template to enforce publish with source
- Fix bug in workflow trigger

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->

| Pipeline |
| -------- |
|
[![avm.res.resource-graph.query](https://github.com/Azure/bicep-registry-modules/actions/workflows/avm.res.resource-graph.query.yml/badge.svg?branch=fix%2Feriqua%2Fres-graph)](https://github.com/Azure/bicep-registry-modules/actions/workflows/avm.res.resource-graph.query.yml)
|

## Type of Change

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utlities (Non-module effecting
changes)
- [ ] Azure Verified Module updates:
- [ ] Bugfix containing backwards compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`:
- [ ] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [ ] Feature update backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [ ] Breaking changes and I have bumped the MAJOR version in
`version.json`.
  - [ ] Update to documentation

## Checklist

- [ ] I'm sure there are no other open Pull Requests for the same
update/change
- [ ] I have run `Set-AVMModule` locally to generate the supporting
module files.
- [ ] My corresponding pipelines / checks run clean and green without
any errors or warnings

<!-- Please keep up to day with the contribution guide at
https://aka.ms/avm/contribute/bicep -->
  • Loading branch information
eriqua authored Mar 12, 2024
1 parent 514157f commit 89853ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/avm.res.resource-graph.query.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
- ".github/actions/templates/avm-**"
- ".github/workflows/avm.template.module.yml"
- ".github/workflows/avm.res.resource-graph.query.yml"
- "avm/res/resource-graph.query/**"
- "avm/res/resource-graph/query/**"
- "avm/utilities/pipelines/**"
- "!*/**/README.md"

Expand Down
4 changes: 2 additions & 2 deletions avm/res/resource-graph/query/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ module query 'br/public:avm/res/resource-graph/query:<version>' = {
| Parameter | Type | Description |
| :-- | :-- | :-- |
| [`name`](#parameter-name) | string | The name of the Resource Graph Query. |
| [`query`](#parameter-query) | string | KQL query that will be graph. |
| [`query`](#parameter-query) | string | The KQL query that will be graph. |

**Optional parameters**

Expand All @@ -301,7 +301,7 @@ The name of the Resource Graph Query.

### Parameter: `query`

KQL query that will be graph.
The KQL query that will be graph.

- Required: Yes
- Type: string
Expand Down
2 changes: 1 addition & 1 deletion avm/res/resource-graph/query/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ param tags object?
@description('Optional. Enable/Disable usage telemetry for module.')
param enableTelemetry bool = true

@description('Required. KQL query that will be graph.')
@description('Required. The KQL query that will be graph.')
param query string

@description('Optional. The description of a graph query.')
Expand Down
4 changes: 2 additions & 2 deletions avm/res/resource-graph/query/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.25.53.49325",
"templateHash": "923009628819731946"
"templateHash": "11608089387685875892"
},
"name": "Resource Graph Queries",
"description": "This module deploys a Resource Graph Query.",
Expand Down Expand Up @@ -148,7 +148,7 @@
"query": {
"type": "string",
"metadata": {
"description": "Required. KQL query that will be graph."
"description": "Required. The KQL query that will be graph."
}
},
"queryDescription": {
Expand Down

0 comments on commit 89853ee

Please sign in to comment.