From 8ec6c5c023ca49dd1ea43f0c07a20a87b3c91207 Mon Sep 17 00:00:00 2001 From: Marc Bellingrath Date: Tue, 26 Nov 2024 21:06:30 -0500 Subject: [PATCH 1/3] Update GH Workflow TOC Generator The TOC Generator sometimes tries to run against branches that no longer exist. This config update should have it only check the main branch. This update also has the TOC Generator create a PR for readme changes instead of pushing them directly. --- .github/workflows/toc.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index 8481c7e702..bbb609d0e1 100644 --- a/.github/workflows/toc.yml +++ b/.github/workflows/toc.yml @@ -6,3 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: technote-space/toc-generator@v4 + with: + CREATE_PR: true + GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + CHECK_ONLY_DEFAULT_BRANCH: true From 6ea49f90d276dbfe6ecafaf904b569b595ebc199 Mon Sep 17 00:00:00 2001 From: Marc Bellingrath Date: Tue, 26 Nov 2024 21:14:03 -0500 Subject: [PATCH 2/3] TOC Generator config update: On push to main branch --- .github/workflows/toc.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index bbb609d0e1..512889862e 100644 --- a/.github/workflows/toc.yml +++ b/.github/workflows/toc.yml @@ -1,4 +1,7 @@ -on: push +on: + push: + branches: + - main name: TOC Generator jobs: generateTOC: From 8fc0024fcf9b8ce8a4fb360bcd01ce671415a323 Mon Sep 17 00:00:00 2001 From: Marc Bellingrath Date: Tue, 26 Nov 2024 21:18:00 -0500 Subject: [PATCH 3/3] Update toc.yml - remove config params that should not be needed --- .github/workflows/toc.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index 512889862e..626a412a0d 100644 --- a/.github/workflows/toc.yml +++ b/.github/workflows/toc.yml @@ -11,5 +11,3 @@ jobs: - uses: technote-space/toc-generator@v4 with: CREATE_PR: true - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - CHECK_ONLY_DEFAULT_BRANCH: true