From 2df62d9c69072dbeca3b8869bcb8f2ad350ccaaf Mon Sep 17 00:00:00 2001 From: Shenglong Li Date: Thu, 23 Mar 2023 10:53:53 -0700 Subject: [PATCH] Refresh module table (#289) * Add logging * Refresh module table --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- README.md | 7 ++++--- scripts/github-actions/refresh-module-table.js | 1 + scripts/github-actions/upload-modules-metadata.js | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fb66a0333a..2be5c0a879 100644 --- a/README.md +++ b/README.md @@ -11,22 +11,23 @@ Below is a table containing all published modules. Each version badge shows the | Module | Version | Docs | | :----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | | `app/dapr-containerapp` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapp/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapp/README.md) | -| `app/dapr-containerapps-environment` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapps-environment/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapps-environment/README.md) | +| `app/dapr-containerapps-environment` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapps-environment/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/app/dapr-containerapps-environment/README.md) | | `azure-gaming/game-dev-vm` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/azure-gaming/game-dev-vm/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/azure-gaming/game-dev-vm/README.md) | | `azure-gaming/game-dev-vmss` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/azure-gaming/game-dev-vmss/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/azure-gaming/game-dev-vmss/README.md) | | `compute/availability-set` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/availability-set/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/availability-set/README.md) | | `compute/container-registry` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/container-registry/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/container-registry/README.md) | | `compute/custom-image-vmss` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/custom-image-vmss/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/compute/custom-image-vmss/README.md) | | `deployment-scripts/aks-run-command` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-command/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-command/README.md) | -| `deployment-scripts/aks-run-helm` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-helm/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-helm/README.md) | +| `deployment-scripts/aks-run-helm` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-helm/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/aks-run-helm/README.md) | | `deployment-scripts/build-acr` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/build-acr/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/build-acr/README.md) | -| `deployment-scripts/create-kv-certificate` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/create-kv-certificate/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/create-kv-certificate/README.md) | +| `deployment-scripts/create-kv-certificate` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/create-kv-certificate/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/create-kv-certificate/README.md) | | `deployment-scripts/import-acr` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/import-acr/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/import-acr/README.md) | | `deployment-scripts/wait` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/wait/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/deployment-scripts/wait/README.md) | | `lz/sub-vending` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/lz/sub-vending/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/lz/sub-vending/README.md) | | `network/virtual-network` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/network/virtual-network/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/network/virtual-network/README.md) | | `samples/array-loop` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/samples/array-loop/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/samples/array-loop/README.md) | | `samples/hello-world` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/samples/hello-world/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/samples/hello-world/README.md) | +| `storage/storage-account` | | [🦾 Code](https://github.com/Azure/bicep-registry-modules/tree/main/modules/storage/storage-account/main.bicep) | [📃 Readme](https://github.com/Azure/bicep-registry-modules/tree/main/modules/storage/storage-account/README.md) | diff --git a/scripts/github-actions/refresh-module-table.js b/scripts/github-actions/refresh-module-table.js index 61bbc55800..a1bc889ed4 100644 --- a/scripts/github-actions/refresh-module-table.js +++ b/scripts/github-actions/refresh-module-table.js @@ -31,6 +31,7 @@ async function generateModulesTable(require, axios, fs, path, core) { const versionListUrl = `https://mcr.microsoft.com/v2/bicep/${modulePath}/tags/list`; try { + core.info(`Getting ${modulePath}...`); const versionListResponse = await axios.get(versionListUrl); const latestVersion = versionListResponse.data.tags.sort().at(-1); const badgeUrl = `https://img.shields.io/badge/mcr-${latestVersion}-blue`; diff --git a/scripts/github-actions/upload-modules-metadata.js b/scripts/github-actions/upload-modules-metadata.js index b6c8fc7883..66b83fa42b 100644 --- a/scripts/github-actions/upload-modules-metadata.js +++ b/scripts/github-actions/upload-modules-metadata.js @@ -24,6 +24,8 @@ async function uploadModulesMetadata({ require, core }) { const versionListUrl = `https://mcr.microsoft.com/v2/bicep/${modulePath}/tags/list`; try { + core.info(`Getting ${modulePath}...`); + const versionListResponse = await axios.default.get(versionListUrl); const tags = versionListResponse.data.tags.sort();