Skip to content

Commit e746232

Browse files
refactor: Consolidate index update workflow into main Docs.yml
1 parent a17943f commit e746232

2 files changed

Lines changed: 26 additions & 51 deletions

File tree

.github/workflows/Docs.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- main
88
paths:
99
- src/**
10+
- .github/scripts/**
1011
- .github/workflows/Docs.yml
1112
- .github/workflows/Update-Index.yml
1213
pull_request:
@@ -55,10 +56,31 @@ jobs:
5556
name: Update index
5657
needs: lint
5758
if: github.event_name != 'pull_request'
58-
uses: ./.github/workflows/Update-Index.yml
59-
secrets:
60-
SCRIBBLER_BOT_CLIENT_ID: ${{ secrets.SCRIBBLER_BOT_CLIENT_ID }}
61-
SCRIBBLER_BOT_PRIVATE_KEY: ${{ secrets.SCRIBBLER_BOT_PRIVATE_KEY }}
59+
runs-on: ubuntu-24.04
60+
steps:
61+
- name: Connect and show repos
62+
uses: PSModule/GitHub-Script@1ee97bbc652d19c38ae12f6e1e47e9d9fbd12d0a # v1.8.0
63+
with:
64+
# Org-level shared secrets used across multiple repositories — no dedicated GitHub Environment needed.
65+
ClientID: ${{ secrets.SCRIBBLER_BOT_CLIENT_ID }} # zizmor: ignore[secrets-outside-env]
66+
PrivateKey: ${{ secrets.SCRIBBLER_BOT_PRIVATE_KEY }} # zizmor: ignore[secrets-outside-env]
67+
Script: .github/scripts/Connect-And-Show-Repos.ps1
68+
69+
- name: Update module index
70+
uses: PSModule/GitHub-Script@1ee97bbc652d19c38ae12f6e1e47e9d9fbd12d0a # v1.8.0
71+
with:
72+
Script: .github/scripts/Update-ModuleIndex.ps1
73+
74+
- name: Update action index
75+
uses: PSModule/GitHub-Script@1ee97bbc652d19c38ae12f6e1e47e9d9fbd12d0a # v1.8.0
76+
with:
77+
Script: .github/scripts/Update-ActionIndex.ps1
78+
79+
- name: Update function app index
80+
uses: PSModule/GitHub-Script@1ee97bbc652d19c38ae12f6e1e47e9d9fbd12d0a # v1.8.0
81+
with:
82+
Script: .github/scripts/Update-FunctionAppIndex.ps1
83+
6284

6385
build:
6486
name: Build

.github/workflows/Update-Index.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)