From e97992eb2e75aa6525019d3f2a402f17d75bfe61 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 20 Aug 2025 16:35:36 -0700 Subject: [PATCH 01/99] add quickstart --- .github/workflows/release-branch-sync.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/release-branch-sync.yml diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml new file mode 100644 index 0000000000..15a61d6b6d --- /dev/null +++ b/.github/workflows/release-branch-sync.yml @@ -0,0 +1,18 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "đŸ–Ĩī¸ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From 059b27faf53c7668fbcbccb405344998f997ba8a Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 20 Aug 2025 16:46:53 -0700 Subject: [PATCH 02/99] testing manual trigger --- .github/workflows/release-branch-sync.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index 15a61d6b6d..d80d1ee20b 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -1,8 +1,10 @@ name: GitHub Actions Demo run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [push] + +on: [workflow_dispatch] + jobs: - Explore-GitHub-Actions: + Sync-Vault-Release-Branch: runs-on: ubuntu-latest steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." From 6ab412483ea158f0f9c664288cfab1ae1dcfaca1 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 20 Aug 2025 16:53:10 -0700 Subject: [PATCH 03/99] messing with formatting --- .github/workflows/release-branch-sync.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index d80d1ee20b..d6f5027d77 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -7,13 +7,16 @@ jobs: Sync-Vault-Release-Branch: runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - run: | + echo "🚧 ${{ github.repository }} - Syncing Vault release branch with main" + echo " - Trigger event: ${{ github.event_name }}" + echo " - Branch: ${{ github.ref }}" + echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "đŸ–Ĩī¸ The workflow is now ready to test your code on the runner." + - run: | + echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + echo "đŸ–Ĩī¸ The workflow is now ready to test your code on the runner." - name: List files in the repository run: | ls ${{ github.workspace }} From 1c6ae974f5e19ec30360c86410c18c3c735477ad Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:23:21 -0700 Subject: [PATCH 04/99] testing --- .github/workflows/release-branch-sync.yml | 54 +++++++++++++++++++---- 1 file changed, 45 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index d6f5027d77..dcd931051f 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -1,23 +1,59 @@ -name: GitHub Actions Demo +name: Sync Vault release branches run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 -on: [workflow_dispatch] +on: + workflow_dispatch: + branches: [main] + inputs: + product: + required: true + default: 'vault' + description: >- + Product slug (e.g., vault, hcp) + +permissions: + contents: write + +env: + release-branch-prefix: ${{ }} + rc-release-branch: Monday jobs: - Sync-Vault-Release-Branch: + + setup: runs-on: ubuntu-latest + outputs: + branch-list: ${{ steps.branch-list.outputs.value }} steps: - - run: | - echo "🚧 ${{ github.repository }} - Syncing Vault release branch with main" - echo " - Trigger event: ${{ github.event_name }}" - echo " - Branch: ${{ github.ref }}" + - name: + id: branch-list + run: | + echo "::set-output name=branchList::$(git branch --list '${{ github.event.inputs.product }}/*')" + - name: Debugging data + run: | + echo "🚧 ${{ github.repository }} - Syncing ${{ github.event.inputs.product }} release branches with main" + echo " - Trigger event: ${{ github.event_name }}" + echo " - Branch: ${{ github.ref }}" + echo " - Target branches: ${{ steps.branch-list.outputs.value }}" echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + + sync-branches: + runs-on: ubuntu-latest + steps: - name: Check out repository code uses: actions/checkout@v4 - - run: | + with: + fetch-depth: 0 + - name: Status update + run: | echo "💡 The ${{ github.repository }} repository has been cloned to the runner." echo "đŸ–Ĩī¸ The workflow is now ready to test your code on the runner." + - name: Setup Git User + run: | + git config user.name "GitHub Action" + git config user.email "test@example.com" - name: List files in the repository run: | ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + - name: "Wrap-up" + run: echo "🍏 This job's status is ${{ job.status }}." From d0455c6c976f5baa982c58f5b3d2b1a4bcbb2122 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:27:22 -0700 Subject: [PATCH 05/99] testing --- .github/workflows/release-branch-sync.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index dcd931051f..8cbfbc0041 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -1,5 +1,5 @@ -name: Sync Vault release branches -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +name: Sync content release branches +run-name: 🚀 ${{ github.actor }} is syncing ${{ github.event.inputs.product }} release branches on: workflow_dispatch: @@ -14,12 +14,7 @@ on: permissions: contents: write -env: - release-branch-prefix: ${{ }} - rc-release-branch: Monday - jobs: - setup: runs-on: ubuntu-latest outputs: From a9647961151418725644c595cef3d877cdb94f87 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:33:29 -0700 Subject: [PATCH 06/99] test --- .github/workflows/release-branch-sync.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index 8cbfbc0041..ee3a714935 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -1,5 +1,6 @@ name: Sync content release branches -run-name: 🚀 ${{ github.actor }} is syncing ${{ github.event.inputs.product }} release branches + +run-name: 🚀 ${{ github.actor }} is syncing ${{ github.event.inputs.product }} release branches on: workflow_dispatch: @@ -18,18 +19,18 @@ jobs: setup: runs-on: ubuntu-latest outputs: - branch-list: ${{ steps.branch-list.outputs.value }} + branch-list: ${{ steps.get-branches.outputs.list }} steps: - name: - id: branch-list + id: get-branches run: | - echo "::set-output name=branchList::$(git branch --list '${{ github.event.inputs.product }}/*')" + echo "::set-output name=list::$(git branch --list '${{ github.event.inputs.product }}/*')" - name: Debugging data run: | echo "🚧 ${{ github.repository }} - Syncing ${{ github.event.inputs.product }} release branches with main" echo " - Trigger event: ${{ github.event_name }}" echo " - Branch: ${{ github.ref }}" - echo " - Target branches: ${{ steps.branch-list.outputs.value }}" + echo " - Target branches: ${{ steps.get-branches.outputs.list }}" echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" sync-branches: From a8b1501c1ed681f7fafa395a771bb817b48ffb19 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:40:55 -0700 Subject: [PATCH 07/99] save --- .github/workflows/release-branch-sync.yml | 29 +++++++---------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index ee3a714935..f17409fdde 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -21,35 +21,22 @@ jobs: outputs: branch-list: ${{ steps.get-branches.outputs.list }} steps: - - name: + - name: Check out repository code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Get release branches id: get-branches run: | - echo "::set-output name=list::$(git branch --list '${{ github.event.inputs.product }}/*')" + echo "BRANCH_LIST=$(git branch --list '${{ github.event.inputs.product }}/*')" >> $GITHUB_OUTPUT - name: Debugging data + env: + BRANCH_LIST: ${{ steps.get-branches.outputs.BRANCH_LIST }} run: | echo "🚧 ${{ github.repository }} - Syncing ${{ github.event.inputs.product }} release branches with main" echo " - Trigger event: ${{ github.event_name }}" echo " - Branch: ${{ github.ref }}" echo " - Target branches: ${{ steps.get-branches.outputs.list }}" echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - sync-branches: - runs-on: ubuntu-latest - steps: - - name: Check out repository code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Status update - run: | - echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - echo "đŸ–Ĩī¸ The workflow is now ready to test your code on the runner." - - name: Setup Git User - run: | - git config user.name "GitHub Action" - git config user.email "test@example.com" - - name: List files in the repository - run: | - ls ${{ github.workspace }} - name: "Wrap-up" run: echo "🍏 This job's status is ${{ job.status }}." From 075ebeabd7bac8844a68c8b65cfb54a9a9df3058 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:52:30 -0700 Subject: [PATCH 08/99] save --- .github/workflows/release-branch-sync.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index f17409fdde..dacda9e8a9 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -19,7 +19,7 @@ jobs: setup: runs-on: ubuntu-latest outputs: - branch-list: ${{ steps.get-branches.outputs.list }} + branch-list: ${{ steps.get-branches.outputs.BRANCH_LIST }} steps: - name: Check out repository code uses: actions/checkout@v4 @@ -29,14 +29,24 @@ jobs: id: get-branches run: | echo "BRANCH_LIST=$(git branch --list '${{ github.event.inputs.product }}/*')" >> $GITHUB_OUTPUT - - name: Debugging data - env: - BRANCH_LIST: ${{ steps.get-branches.outputs.BRANCH_LIST }} + - name: Debugging data + run: | + echo "🚧 Setup complete" + echo " - Trigger event: ${{ github.event_name }}" + echo " - Branch: ${{ github.ref }}" + echo " - Target branches: ${{ BRANCH_LIST }}" + sync-branches: + needs: setup + runs-on: ubuntu-latest + steps: + - env: + BRANCH_LIST: ${{ needs.setup.outputs.branch-list }} + - name: Debugging data run: | echo "🚧 ${{ github.repository }} - Syncing ${{ github.event.inputs.product }} release branches with main" echo " - Trigger event: ${{ github.event_name }}" echo " - Branch: ${{ github.ref }}" - echo " - Target branches: ${{ steps.get-branches.outputs.list }}" + echo " - Target branches: ${{ BRANCH_LIST }}" echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - name: "Wrap-up" run: echo "🍏 This job's status is ${{ job.status }}." From 003a87fdc165f11d40507286106849cea76b3784 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:54:53 -0700 Subject: [PATCH 09/99] save --- .github/workflows/release-branch-sync.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index dacda9e8a9..694dac4b9d 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -29,7 +29,9 @@ jobs: id: get-branches run: | echo "BRANCH_LIST=$(git branch --list '${{ github.event.inputs.product }}/*')" >> $GITHUB_OUTPUT - - name: Debugging data + - name: Debugging data + env: + BRANCH_LIST: ${{ steps.get-branches.outputs.BRANCH_LIST }} run: | echo "🚧 Setup complete" echo " - Trigger event: ${{ github.event_name }}" From a542cb3c44ba3c420950dfbf7a35969a87c74943 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:56:14 -0700 Subject: [PATCH 10/99] change syntax --- .github/workflows/release-branch-sync.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index 694dac4b9d..ea7deae76d 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -30,13 +30,11 @@ jobs: run: | echo "BRANCH_LIST=$(git branch --list '${{ github.event.inputs.product }}/*')" >> $GITHUB_OUTPUT - name: Debugging data - env: - BRANCH_LIST: ${{ steps.get-branches.outputs.BRANCH_LIST }} run: | echo "🚧 Setup complete" echo " - Trigger event: ${{ github.event_name }}" echo " - Branch: ${{ github.ref }}" - echo " - Target branches: ${{ BRANCH_LIST }}" + echo " - Target branches: ${{ steps.get-branches.outputs.BRANCH_LIST }}" sync-branches: needs: setup runs-on: ubuntu-latest From 43c89914a7ebefc9c612f7bfe76b67f489e842e9 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:58:37 -0700 Subject: [PATCH 11/99] change variable syntax --- .github/workflows/release-branch-sync.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index ea7deae76d..b25ef66c02 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -16,7 +16,7 @@ permissions: contents: write jobs: - setup: + job-prep: runs-on: ubuntu-latest outputs: branch-list: ${{ steps.get-branches.outputs.BRANCH_LIST }} @@ -36,17 +36,17 @@ jobs: echo " - Branch: ${{ github.ref }}" echo " - Target branches: ${{ steps.get-branches.outputs.BRANCH_LIST }}" sync-branches: - needs: setup + needs: job-prep runs-on: ubuntu-latest steps: - env: - BRANCH_LIST: ${{ needs.setup.outputs.branch-list }} + BRANCH_LIST: ${{ needs.job-prep.outputs.branch-list }} - name: Debugging data run: | echo "🚧 ${{ github.repository }} - Syncing ${{ github.event.inputs.product }} release branches with main" echo " - Trigger event: ${{ github.event_name }}" echo " - Branch: ${{ github.ref }}" - echo " - Target branches: ${{ BRANCH_LIST }}" + echo " - Target branches: $BRANCH_LIST" echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - name: "Wrap-up" run: echo "🍏 This job's status is ${{ job.status }}." From 1c6422cc8eccf7862bcf442124e7812c8bdd0d5e Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:02:22 -0700 Subject: [PATCH 12/99] debugging --- .github/workflows/release-branch-sync.yml | 42 ++++++++--------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index b25ef66c02..aa6d505da8 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -16,37 +16,23 @@ permissions: contents: write jobs: - job-prep: + job1: runs-on: ubuntu-latest outputs: - branch-list: ${{ steps.get-branches.outputs.BRANCH_LIST }} + output_1: ${{ steps.gen_output.outputs.output_1 }} + output_2: ${{ steps.gen_output.outputs.output_2 }} + output_3: ${{ steps.gen_output.outputs.output_3 }} + strategy: + matrix: + version: [1, 2, 3] steps: - - name: Check out repository code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Get release branches - id: get-branches + - name: Generate output + id: gen_output run: | - echo "BRANCH_LIST=$(git branch --list '${{ github.event.inputs.product }}/*')" >> $GITHUB_OUTPUT - - name: Debugging data - run: | - echo "🚧 Setup complete" - echo " - Trigger event: ${{ github.event_name }}" - echo " - Branch: ${{ github.ref }}" - echo " - Target branches: ${{ steps.get-branches.outputs.BRANCH_LIST }}" - sync-branches: - needs: job-prep + version="${{ matrix.version }}" + echo "output_${version}=${version}" >> "$GITHUB_OUTPUT" + job2: runs-on: ubuntu-latest + needs: [job1] steps: - - env: - BRANCH_LIST: ${{ needs.job-prep.outputs.branch-list }} - - name: Debugging data - run: | - echo "🚧 ${{ github.repository }} - Syncing ${{ github.event.inputs.product }} release branches with main" - echo " - Trigger event: ${{ github.event_name }}" - echo " - Branch: ${{ github.ref }}" - echo " - Target branches: $BRANCH_LIST" - echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - name: "Wrap-up" - run: echo "🍏 This job's status is ${{ job.status }}." + - run: echo '${{ toJSON(needs.job1.outputs) }}' \ No newline at end of file From a7e1b4059610e8d813d9f0c5e0f730d1c2941f80 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:08:10 -0700 Subject: [PATCH 13/99] idk --- .github/workflows/release-branch-sync.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index aa6d505da8..8e4abe1e52 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -16,7 +16,7 @@ permissions: contents: write jobs: - job1: + setup: runs-on: ubuntu-latest outputs: output_1: ${{ steps.gen_output.outputs.output_1 }} @@ -24,7 +24,7 @@ jobs: output_3: ${{ steps.gen_output.outputs.output_3 }} strategy: matrix: - version: [1, 2, 3] + version: [$(for i in {1..3}; do echo "${i}" ; done)] steps: - name: Generate output id: gen_output @@ -33,6 +33,6 @@ jobs: echo "output_${version}=${version}" >> "$GITHUB_OUTPUT" job2: runs-on: ubuntu-latest - needs: [job1] + needs: [setup] steps: - run: echo '${{ toJSON(needs.job1.outputs) }}' \ No newline at end of file From 69f761548655675825285c1e5fec9065c563e7e1 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:15:02 -0700 Subject: [PATCH 14/99] try this --- .github/workflows/release-branch-sync.yml | 27 +++++++++-------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index 8e4abe1e52..d2babda9b6 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -16,23 +16,16 @@ permissions: contents: write jobs: - setup: + build: runs-on: ubuntu-latest - outputs: - output_1: ${{ steps.gen_output.outputs.output_1 }} - output_2: ${{ steps.gen_output.outputs.output_2 }} - output_3: ${{ steps.gen_output.outputs.output_3 }} - strategy: - matrix: - version: [$(for i in {1..3}; do echo "${i}" ; done)] steps: - - name: Generate output - id: gen_output + - name: Generate dynamic matrix + id: generate-matrix run: | - version="${{ matrix.version }}" - echo "output_${version}=${version}" >> "$GITHUB_OUTPUT" - job2: - runs-on: ubuntu-latest - needs: [setup] - steps: - - run: echo '${{ toJSON(needs.job1.outputs) }}' \ No newline at end of file + echo "mylist=[$(for i in {1..2}; do echo -n "$i," ; done)3]" >> $GITHUB_OUTPUT + - name: Dynamic matrix job + strategy: + matrix: + branch-name: ${{ fromJson(steps.generate-matrix.outputs.mylist) }} + run: | + echo "Running job with input ${{ matrix.branch-name }}" \ No newline at end of file From f08dd53bfb66a0e9ebc29b36687b41ae4af23b26 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:29:47 -0700 Subject: [PATCH 15/99] test --- .github/workflows/release-branch-sync.yml | 28 ++++++++++++++--------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index d2babda9b6..8c0bea1966 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -4,7 +4,6 @@ run-name: 🚀 ${{ github.actor }} is syncing ${{ github.event.inputs.product }} on: workflow_dispatch: - branches: [main] inputs: product: required: true @@ -16,16 +15,23 @@ permissions: contents: write jobs: - build: + setup: runs-on: ubuntu-latest + outputs: + output_1: ${{ steps.gen_output.outputs.output_1 }} + output_2: ${{ steps.gen_output.outputs.output_2 }} + output_3: ${{ steps.gen_output.outputs.output_3 }} + strategy: + matrix: + version: [$()] steps: - - name: Generate dynamic matrix - id: generate-matrix + - name: Generate output + id: gen_output run: | - echo "mylist=[$(for i in {1..2}; do echo -n "$i," ; done)3]" >> $GITHUB_OUTPUT - - name: Dynamic matrix job - strategy: - matrix: - branch-name: ${{ fromJson(steps.generate-matrix.outputs.mylist) }} - run: | - echo "Running job with input ${{ matrix.branch-name }}" \ No newline at end of file + version="${{ matrix.version }}" + echo "output_${version}=${version}" >> "$GITHUB_OUTPUT" + job2: + runs-on: ubuntu-latest + needs: [setup] + steps: + - run: echo '${{ toJSON(needs.setup.outputs) }}' \ No newline at end of file From dcd29c4189d483c3741fd51041de6a1bdb43bb81 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:37:35 -0700 Subject: [PATCH 16/99] i have no idea what I'm doing --- .github/workflows/release-branch-sync.yml | 27 +++++++++++------------ 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index 8c0bea1966..b9f25e9c16 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -15,23 +15,22 @@ permissions: contents: write jobs: - setup: + build: runs-on: ubuntu-latest outputs: - output_1: ${{ steps.gen_output.outputs.output_1 }} - output_2: ${{ steps.gen_output.outputs.output_2 }} - output_3: ${{ steps.gen_output.outputs.output_3 }} - strategy: - matrix: - version: [$()] + mylist: ${{ steps.generate-matrix.outputs.mylist }} steps: - - name: Generate output - id: gen_output + - name: Generate dynamic matrix + id: generate-matrix run: | - version="${{ matrix.version }}" - echo "output_${version}=${version}" >> "$GITHUB_OUTPUT" - job2: + echo "mylist=[$(for i in {1..2}; do echo -n "$i," ; done)3]" >> $GITHUB_OUTPUT + usematrix: runs-on: ubuntu-latest - needs: [setup] + needs: [build] + strategy: + matrix: + branch-name: ${{ fromJson(steps.generate-matrix.outputs.mylist) }} steps: - - run: echo '${{ toJSON(needs.setup.outputs) }}' \ No newline at end of file + - name: Dynamic matrix job + run: | + echo "Running job with input ${{ matrix.branch-name }}" \ No newline at end of file From 72534f5d5d4ea72574221f4d0c9870aa47def5d1 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:39:07 -0700 Subject: [PATCH 17/99] ;__; --- .github/workflows/release-branch-sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index b9f25e9c16..9759427d0d 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -29,7 +29,7 @@ jobs: needs: [build] strategy: matrix: - branch-name: ${{ fromJson(steps.generate-matrix.outputs.mylist) }} + branch-name: ${{ fromJson(needs.build.outputs.mylist) }} steps: - name: Dynamic matrix job run: | From b0b741325d0dfa3d614c7032349d5c904ebe2e29 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:45:21 -0700 Subject: [PATCH 18/99] trying with branch names --- .github/workflows/create-release-branch.yml | 63 +++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/create-release-branch.yml diff --git a/.github/workflows/create-release-branch.yml b/.github/workflows/create-release-branch.yml new file mode 100644 index 0000000000..e4ae5557f5 --- /dev/null +++ b/.github/workflows/create-release-branch.yml @@ -0,0 +1,63 @@ +name: Create release branch +run-name: ${{ github.actor }} is creating a ${{ env.product }} release branch 🚀 + +on: + workflow_dispatch: + branches: [main] + inputs: + product: + required: true + description: >- + Product slug (e.g., vault, hcp) + branchName: + required: true + description: >- + Release branch name. Monthly release branches use YYYYMM notation. + Major release branches use the corresponding content version + +permissions: + contents: write + +env: + monthly-release-branch: ${{ }} + rc-release-branch: Monday + +jobs: + Sync-Vault-Release-Branch: + runs-on: ubuntu-latest + steps: + - name: Get monthly release branch + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + + - name: Debugging data + run: | + echo "🚧 ${{ github.repository }} - Syncing Vault release branch with main" + echo " - Trigger event: ${{ github.event_name }}" + echo " - Branch: ${{ github.ref }}" + echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - name: Check out repository code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Status update + run: | + echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + echo "đŸ–Ĩī¸ The workflow is now ready to test your code on the runner." + - name: Setup Git User + run: | + git config user.name "GitHub Action" + git config user.email "" + - name: Update vault/ Branch + run: | + git checkout main + git fetch origin + git checkout test + git pull + git merge origin/main + git push origin test + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - name: "Wrap-up" + run: echo "🍏 This job's status is ${{ job.status }}." From e39ebccb416428cb02f8cf360b6756bb4b0deb9b Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:46:49 -0700 Subject: [PATCH 19/99] test --- .github/workflows/release-branch-sync.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index 9759427d0d..48b73e005e 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -20,10 +20,14 @@ jobs: outputs: mylist: ${{ steps.generate-matrix.outputs.mylist }} steps: + - name: Check out repository code + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Generate dynamic matrix id: generate-matrix run: | - echo "mylist=[$(for i in {1..2}; do echo -n "$i," ; done)3]" >> $GITHUB_OUTPUT + echo "mylist=[$(git branch --list '${{ github.event.inputs.product }}/*')]" >> $GITHUB_OUTPUT usematrix: runs-on: ubuntu-latest needs: [build] From f4d631eed99a35d67456fdae21c088313354e8cf Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 15:39:45 -0700 Subject: [PATCH 20/99] save --- .github/workflows/create-release-pr.yml | 65 +++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/create-release-pr.yml diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml new file mode 100644 index 0000000000..732488bb93 --- /dev/null +++ b/.github/workflows/create-release-pr.yml @@ -0,0 +1,65 @@ +name: Create release branch PR +run-name: 🚀 Creating a ${{ env.product }} release PR + +on: + workflow_dispatch: + inputs: + product: + required: true + description: >- + Product slug (e.g., vault, hcp) + branch-name: + required: true + description: >- + Release branch name. Monthly release branches use YYYYMM notation. + Major release branches use the corresponding content version + +permissions: + contents: write + +jobs: + create-pr: + runs-on: ubuntu-latest + steps: + - name: Debugging data + run: | + echo "🚧 ${{ github.repository }} - Creating PR" + echo " - Source branch: ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + echo " - Target branch: ${{ github.ref }}" + echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - name: Create pull request + run: | + gh pr create \ + -B main \ + -H ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }} \ + --label "${{ github.event.inputs.product }}-docs" + --title "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + --body "Merging ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}\nCreated by Github action" + + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check out repository code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Status update + run: | + echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + echo "đŸ–Ĩī¸ The workflow is now ready to test your code on the runner." + - name: Setup Git User + run: | + git config user.name "GitHub Action" + git config user.email "" + - name: Update vault/ Branch + run: | + git checkout main + git fetch origin + git checkout test + git pull + git merge origin/main + git push origin test + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - name: "Wrap-up" + run: echo "🍏 This job's status is ${{ job.status }}." From a4c4a2d237a1c08eeda9e15b6b07df8ba9a90a7a Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 15:39:52 -0700 Subject: [PATCH 21/99] s --- .github/workflows/create-release-branch.yml | 63 --------------------- 1 file changed, 63 deletions(-) delete mode 100644 .github/workflows/create-release-branch.yml diff --git a/.github/workflows/create-release-branch.yml b/.github/workflows/create-release-branch.yml deleted file mode 100644 index e4ae5557f5..0000000000 --- a/.github/workflows/create-release-branch.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Create release branch -run-name: ${{ github.actor }} is creating a ${{ env.product }} release branch 🚀 - -on: - workflow_dispatch: - branches: [main] - inputs: - product: - required: true - description: >- - Product slug (e.g., vault, hcp) - branchName: - required: true - description: >- - Release branch name. Monthly release branches use YYYYMM notation. - Major release branches use the corresponding content version - -permissions: - contents: write - -env: - monthly-release-branch: ${{ }} - rc-release-branch: Monday - -jobs: - Sync-Vault-Release-Branch: - runs-on: ubuntu-latest - steps: - - name: Get monthly release branch - id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d')" - - - name: Debugging data - run: | - echo "🚧 ${{ github.repository }} - Syncing Vault release branch with main" - echo " - Trigger event: ${{ github.event_name }}" - echo " - Branch: ${{ github.ref }}" - echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - name: Check out repository code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Status update - run: | - echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - echo "đŸ–Ĩī¸ The workflow is now ready to test your code on the runner." - - name: Setup Git User - run: | - git config user.name "GitHub Action" - git config user.email "" - - name: Update vault/ Branch - run: | - git checkout main - git fetch origin - git checkout test - git pull - git merge origin/main - git push origin test - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - name: "Wrap-up" - run: echo "🍏 This job's status is ${{ job.status }}." From 846c7b8be18833ad805c88c72d707848bc305b02 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 15:40:46 -0700 Subject: [PATCH 22/99] save --- .../vault/v1.20.x/content/docs/about-vault/how-vault-works.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/content/vault/v1.20.x/content/docs/about-vault/how-vault-works.mdx b/content/vault/v1.20.x/content/docs/about-vault/how-vault-works.mdx index f94a5139dc..4d917667d9 100644 --- a/content/vault/v1.20.x/content/docs/about-vault/how-vault-works.mdx +++ b/content/vault/v1.20.x/content/docs/about-vault/how-vault-works.mdx @@ -7,6 +7,7 @@ description: >- # How Vault works +This is a change from vault/test Vault is an identity-based secrets and encryption management system that centralizes secret management, rotates old credentials, generates From 8e53bb4ac5f536caf04d74d6ec4b43cb71662c00 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:03:03 -0700 Subject: [PATCH 23/99] save --- .github/workflows/create-release-pr.yml | 52 +++++++++---------------- 1 file changed, 19 insertions(+), 33 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 732488bb93..2ee1568f87 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -14,6 +14,16 @@ on: Release branch name. Monthly release branches use YYYYMM notation. Major release branches use the corresponding content version +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + MERGE_TARGET: "main" + LABELS: "${{ inputs.product }}-docs" + PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + PR_BODY: | + Merging ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }} + Created by Github action + permissions: contents: write @@ -24,42 +34,18 @@ jobs: - name: Debugging data run: | echo "🚧 ${{ github.repository }} - Creating PR" - echo " - Source branch: ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - echo " - Target branch: ${{ github.ref }}" + echo " - Release branch: $RELEASE_BRANCH" + echo " - Merge target: $MERGE_TARGET" echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - name: Create pull request run: | - gh pr create \ - -B main \ - -H ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }} \ - --label "${{ github.event.inputs.product }}-docs" - --title "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - --body "Merging ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}\nCreated by Github action" - + gh pr create \ + -B $MERGE_TARGET \ + -H $RELEASE_BRANCH \ + --label $LABELS \ + --title $PR_TITLE \ + --body $PR_BODY env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check out repository code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Status update - run: | - echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - echo "đŸ–Ĩī¸ The workflow is now ready to test your code on the runner." - - name: Setup Git User - run: | - git config user.name "GitHub Action" - git config user.email "" - - name: Update vault/ Branch - run: | - git checkout main - git fetch origin - git checkout test - git pull - git merge origin/main - git push origin test - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - name: "Wrap-up" + - name: Wrap-up run: echo "🍏 This job's status is ${{ job.status }}." From 5a43cf1f20798e7ccd9c882fcf240f620f9e70d4 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:04:22 -0700 Subject: [PATCH 24/99] move env --- .github/workflows/create-release-pr.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 2ee1568f87..1a7585c1d9 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -14,22 +14,21 @@ on: Release branch name. Monthly release branches use YYYYMM notation. Major release branches use the corresponding content version -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - MERGE_TARGET: "main" - LABELS: "${{ inputs.product }}-docs" - PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - PR_BODY: | - Merging ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }} - Created by Github action - permissions: contents: write jobs: create-pr: runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + MERGE_TARGET: "main" + LABELS: "${{ inputs.product }}-docs" + PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + PR_BODY: | + Merging ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }} + Created by Github action steps: - name: Debugging data run: | From 3c9d7ba5e11a9b688fc5b54d529d433c94f82738 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:07:06 -0700 Subject: [PATCH 25/99] idk --- .github/workflows/create-release-pr.yml | 2 +- .github/workflows/release-branch-sync.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 1a7585c1d9..1cd0707f0c 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -1,5 +1,5 @@ name: Create release branch PR -run-name: 🚀 Creating a ${{ env.product }} release PR +run-name: 🚀 Creating ${{ env.product }} release PR on: workflow_dispatch: diff --git a/.github/workflows/release-branch-sync.yml b/.github/workflows/release-branch-sync.yml index 48b73e005e..69bb5059ba 100644 --- a/.github/workflows/release-branch-sync.yml +++ b/.github/workflows/release-branch-sync.yml @@ -1,4 +1,4 @@ -name: Sync content release branches +name: TESTING - Sync content release branches run-name: 🚀 ${{ github.actor }} is syncing ${{ github.event.inputs.product }} release branches From 8c28a1ee3be99e74d46cdac6804707011b8d6d54 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:11:06 -0700 Subject: [PATCH 26/99] why you hate me --- .github/workflows/create-release-pr.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 1cd0707f0c..45a7e46002 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -1,6 +1,9 @@ name: Create release branch PR run-name: 🚀 Creating ${{ env.product }} release PR +permissions: + contents: write + on: workflow_dispatch: inputs: @@ -14,21 +17,20 @@ on: Release branch name. Monthly release branches use YYYYMM notation. Major release branches use the corresponding content version -permissions: - contents: write + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + MERGE_TARGET: "main" + LABELS: "${{ inputs.product }}-docs" + PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + PR_BODY: " + Merging ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }} + Created by Github action" jobs: create-pr: runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - MERGE_TARGET: "main" - LABELS: "${{ inputs.product }}-docs" - PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - PR_BODY: | - Merging ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }} - Created by Github action steps: - name: Debugging data run: | From 1d81242c33f808adc0685ee99bc04b04661e125e Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:15:18 -0700 Subject: [PATCH 27/99] try again --- .github/workflows/create-release-pr.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 45a7e46002..b6303f98f4 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -17,17 +17,6 @@ on: Release branch name. Monthly release branches use YYYYMM notation. Major release branches use the corresponding content version - -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - MERGE_TARGET: "main" - LABELS: "${{ inputs.product }}-docs" - PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - PR_BODY: " - Merging ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }} - Created by Github action" - jobs: create-pr: runs-on: ubuntu-latest @@ -48,5 +37,12 @@ jobs: --body $PR_BODY env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + MERGE_TARGET: "main" + LABELS: "${{ inputs.product }}-docs" + PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + PR_BODY: | + Merging ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }} + Created by Github action - name: Wrap-up run: echo "🍏 This job's status is ${{ job.status }}." From f1859d881e3c189912726054f2bba8dc254888c2 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:16:45 -0700 Subject: [PATCH 28/99] crying --- .github/workflows/create-release-pr.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index b6303f98f4..376853a9b5 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -9,6 +9,7 @@ on: inputs: product: required: true + default: vault description: >- Product slug (e.g., vault, hcp) branch-name: @@ -41,8 +42,6 @@ jobs: MERGE_TARGET: "main" LABELS: "${{ inputs.product }}-docs" PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - PR_BODY: | - Merging ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }} - Created by Github action + PR_BODY: Created by Github action - name: Wrap-up run: echo "🍏 This job's status is ${{ job.status }}." From 458f4591bd78080fcd04b88506bc6233134de432 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:18:54 -0700 Subject: [PATCH 29/99] change title --- .github/workflows/create-release-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 376853a9b5..c194f52fa6 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -1,4 +1,4 @@ -name: Create release branch PR +name: TESTING - Create release branch PR run-name: 🚀 Creating ${{ env.product }} release PR permissions: From 466a946d78d3d2fab1abd999c3cafa395d99b5fb Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:20:32 -0700 Subject: [PATCH 30/99] omg --- .github/workflows/create-release-pr.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index c194f52fa6..ce40a51722 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -1,5 +1,5 @@ name: TESTING - Create release branch PR -run-name: 🚀 Creating ${{ env.product }} release PR +run-name: 🚀 Creating ${{ github.event.inputs.product }} release PR permissions: contents: write @@ -18,6 +18,14 @@ on: Release branch name. Monthly release branches use YYYYMM notation. Major release branches use the corresponding content version +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + MERGE_TARGET: "main" + LABELS: "${{ inputs.product }}-docs" + PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + PR_BODY: Created by Github action + jobs: create-pr: runs-on: ubuntu-latest @@ -36,12 +44,5 @@ jobs: --label $LABELS \ --title $PR_TITLE \ --body $PR_BODY - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - MERGE_TARGET: "main" - LABELS: "${{ inputs.product }}-docs" - PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - PR_BODY: Created by Github action - name: Wrap-up run: echo "🍏 This job's status is ${{ job.status }}." From 3559d45d4b8a4186551036e136169c9efb520d05 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:22:51 -0700 Subject: [PATCH 31/99] test --- .github/workflows/create-release-pr.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index ce40a51722..0dd3a9c01a 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -19,12 +19,13 @@ on: Major release branches use the corresponding content version env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - MERGE_TARGET: "main" - LABELS: "${{ inputs.product }}-docs" - PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - PR_BODY: Created by Github action + MERGE_TARGET: "main" + LABELS: "${{ inputs.product }}-docs" + PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" + PR_BODY: | + Publication PR created by Github action jobs: create-pr: From 03be169cd367554a23b7e168664032d58ef6bc68 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:24:43 -0700 Subject: [PATCH 32/99] add quotes to gh commands --- .github/workflows/create-release-pr.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 0dd3a9c01a..34f59cbbc7 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -24,8 +24,7 @@ env: MERGE_TARGET: "main" LABELS: "${{ inputs.product }}-docs" PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - PR_BODY: | - Publication PR created by Github action + PR_BODY: "Publication PR created by Github action" jobs: create-pr: @@ -42,8 +41,8 @@ jobs: gh pr create \ -B $MERGE_TARGET \ -H $RELEASE_BRANCH \ - --label $LABELS \ - --title $PR_TITLE \ - --body $PR_BODY + --label "$LABELS" \ + --title "$PR_TITLE" \ + --body "$PR_BODY" - name: Wrap-up run: echo "🍏 This job's status is ${{ job.status }}." From e4df1e28c9c17ea43bfcf29ecdf5bc1f1a9fc036 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:29:37 -0700 Subject: [PATCH 33/99] more testing --- .github/workflows/create-release-pr.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 34f59cbbc7..94b5690c41 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -15,11 +15,9 @@ on: branch-name: required: true description: >- - Release branch name. Monthly release branches use YYYYMM notation. - Major release branches use the corresponding content version + Release branch name without product prefix. env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" MERGE_TARGET: "main" LABELS: "${{ inputs.product }}-docs" @@ -35,7 +33,10 @@ jobs: echo "🚧 ${{ github.repository }} - Creating PR" echo " - Release branch: $RELEASE_BRANCH" echo " - Merge target: $MERGE_TARGET" - echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - name: Check out repository code + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Create pull request run: | gh pr create \ @@ -44,5 +45,7 @@ jobs: --label "$LABELS" \ --title "$PR_TITLE" \ --body "$PR_BODY" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Wrap-up run: echo "🍏 This job's status is ${{ job.status }}." From 0a8ca3f739bec1d9b0bb72f1255f258a48a234c6 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Wed, 27 Aug 2025 17:21:56 -0700 Subject: [PATCH 34/99] idk man --- .github/workflows/create-release-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 94b5690c41..593a2b5e6d 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -46,6 +46,6 @@ jobs: --title "$PR_TITLE" \ --body "$PR_BODY" env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} - name: Wrap-up run: echo "🍏 This job's status is ${{ job.status }}." From 5e944df8d9efcd2c8f090c6fed632de40c13070a Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 11:40:08 -0700 Subject: [PATCH 35/99] testing labeling --- .github/labeler.yml | 3 +++ .github/workflows/vault-pr.yml | 36 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/vault-pr.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..4a4d151b34 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,3 @@ +Vault: +- changed-files: + - any-glob-to-any-file: 'content/vault/*' \ No newline at end of file diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml new file mode 100644 index 0000000000..0579dd6345 --- /dev/null +++ b/.github/workflows/vault-pr.yml @@ -0,0 +1,36 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler + +name: Labeler +on: [pull_request_target] + +jobs: + + label-the-pr: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - id: apply-the-label + uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true + + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "Message that will be displayed on users' first issue" + pr-message: "Message that will be displayed on users' first pull request" \ No newline at end of file From 514bb2294496c99a1692a0eca2146d8871375ed0 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 11:43:54 -0700 Subject: [PATCH 36/99] add name --- .github/workflows/vault-pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 0579dd6345..4d01fdebf9 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -5,7 +5,9 @@ # file with configuration. For more information, see: # https://github.com/actions/labeler -name: Labeler +name: TESTING - Process content PR +run-name: 🚀 Processing content PR + on: [pull_request_target] jobs: From f08c0e8ec97dc927dfefc52bdfec588aed4d7062 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 12:04:11 -0700 Subject: [PATCH 37/99] save --- .github/labeler.yml | 25 ++++++++++++++++++++++--- .github/workflows/pr-labeler.yml | 24 ++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml index 4a4d151b34..f5374bdb0e 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,3 +1,22 @@ -Vault: -- changed-files: - - any-glob-to-any-file: 'content/vault/*' \ No newline at end of file +"Terraform": +- any: + - changed-files: + - any-glob-to-any-file: 'content/terraform/*' + - any-glob-to-any-file: 'content/terraform-enterprise/*' + - any-glob-to-any-file: 'terraform-plugin-mux/*' + - any-glob-to-any-file: 'terraform-cdk/*' + - any-glob-to-any-file: 'terraform-migrate/*' + - any-glob-to-any-file: 'terraform-plugin-sdk/*' + - any-glob-to-any-file: 'terraform-docs-agents/*' + - any-glob-to-any-file: 'terraform-plugin-framework/*' + - any-glob-to-any-file: 'terraform-plugin-testing/*' + - any-glob-to-any-file: 'terraform-docs-common/*' + - any-glob-to-any-file: 'terraform-plugin-log/*' +"Vault Docs": +- any: + - changed-files: + - any-glob-to-any-file: 'content/vault/*' +"WAF": +- any: + - changed-files: + - any-glob-to-any-file: 'well-architected-framework/*' diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 0000000000..3da451f6b3 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,24 @@ +# Apply a product label based on the content files modified in the pull request +# and configuration details in .github/labeler.yml. +# +# For more information, see: https://github.com/actions/labeler + +name: Label content PRs +run-name: đŸˇī¸ Label content PRs + +on: [pull_request_target] + +jobs: + + label-the-pr: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - id: apply-the-label + uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true \ No newline at end of file From 3db45f9b9877d246af4ba4208c1fa60556102db5 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 12:05:41 -0700 Subject: [PATCH 38/99] save --- .github/labeler.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index f5374bdb0e..af536bca07 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,4 +1,4 @@ -"Terraform": +Terraform: - any: - changed-files: - any-glob-to-any-file: 'content/terraform/*' @@ -12,11 +12,11 @@ - any-glob-to-any-file: 'terraform-plugin-testing/*' - any-glob-to-any-file: 'terraform-docs-common/*' - any-glob-to-any-file: 'terraform-plugin-log/*' -"Vault Docs": +Vault Docs: - any: - changed-files: - any-glob-to-any-file: 'content/vault/*' -"WAF": +WAF: - any: - changed-files: - any-glob-to-any-file: 'well-architected-framework/*' From c2aa978f5f9b9d666439e73dacfa923cb0323611 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 12:06:05 -0700 Subject: [PATCH 39/99] save --- .github/workflows/pr-labeler.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 3da451f6b3..48dc3e15af 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -3,8 +3,7 @@ # # For more information, see: https://github.com/actions/labeler -name: Label content PRs -run-name: đŸˇī¸ Label content PRs +name: đŸˇī¸ Label content PRs on: [pull_request_target] From 1cf83bdcdb48e19deb4c4948fd0e9a3836bfdb97 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 12:12:17 -0700 Subject: [PATCH 40/99] update syntax --- .github/labeler.yml | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index af536bca07..7671c595a4 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,22 +1,30 @@ +# Add 'Terraform' label to changes in the following folders (includes subfolders) Terraform: - any: - changed-files: - - any-glob-to-any-file: 'content/terraform/*' - - any-glob-to-any-file: 'content/terraform-enterprise/*' - - any-glob-to-any-file: 'terraform-plugin-mux/*' - - any-glob-to-any-file: 'terraform-cdk/*' - - any-glob-to-any-file: 'terraform-migrate/*' - - any-glob-to-any-file: 'terraform-plugin-sdk/*' - - any-glob-to-any-file: 'terraform-docs-agents/*' - - any-glob-to-any-file: 'terraform-plugin-framework/*' - - any-glob-to-any-file: 'terraform-plugin-testing/*' - - any-glob-to-any-file: 'terraform-docs-common/*' - - any-glob-to-any-file: 'terraform-plugin-log/*' + - any-glob-to-any-file: + - 'content/terraform/**' + - 'content/terraform-enterprise/**' + - 'content/terraform-plugin-mux/**' + - 'content/terraform-cdk/**' + - 'content/terraform-migrate/**' + - 'content/terraform-plugin-sdk/**' + - 'content/terraform-docs-agents/**' + - 'content/terraform-plugin-framework/**' + - 'content/terraform-plugin-testing/**' + - 'content/terraform-docs-common/**' + - 'content/terraform-plugin-log/**' + +# Add 'Vault' label to changes in the following folders (includes subfolders) Vault Docs: - any: - changed-files: - - any-glob-to-any-file: 'content/vault/*' + - any-glob-to-any-file: + - 'content/vault/**' + +# Add 'WAF' label to changes in the following folders (includes subfolders) WAF: - any: - changed-files: - - any-glob-to-any-file: 'well-architected-framework/*' + - any-glob-to-any-file: + - 'well-architected-framework/**' From 60d2cfed27c95a9d130306991ae1c436a0f5a3de Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 12:15:03 -0700 Subject: [PATCH 41/99] save --- .github/labeler.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7671c595a4..64b11e8530 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -28,3 +28,8 @@ WAF: - changed-files: - any-glob-to-any-file: - 'well-architected-framework/**' + +# Add 'Release' label to any PR that is opened against a release branch. +# For example, vault/202509 (monthly release) or vault/1.21.x (major release) +Release: + - base-branch: 'vault/*' \ No newline at end of file From 4d9ac8491a112b0844786fee4bc57f673e9434b3 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 12:15:37 -0700 Subject: [PATCH 42/99] save --- .github/labeler.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 64b11e8530..4afa0510e8 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,5 +1,5 @@ # Add 'Terraform' label to changes in the following folders (includes subfolders) -Terraform: +"Terraform": - any: - changed-files: - any-glob-to-any-file: @@ -16,14 +16,14 @@ Terraform: - 'content/terraform-plugin-log/**' # Add 'Vault' label to changes in the following folders (includes subfolders) -Vault Docs: +"Vault Docs": - any: - changed-files: - any-glob-to-any-file: - 'content/vault/**' # Add 'WAF' label to changes in the following folders (includes subfolders) -WAF: +"WAF": - any: - changed-files: - any-glob-to-any-file: @@ -31,5 +31,5 @@ WAF: # Add 'Release' label to any PR that is opened against a release branch. # For example, vault/202509 (monthly release) or vault/1.21.x (major release) -Release: +"Release": - base-branch: 'vault/*' \ No newline at end of file From a250cf2e69daad022f73b41b71feaf9121883de4 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 12:19:38 -0700 Subject: [PATCH 43/99] save --- .github/labeler.yml | 10 +++++----- .github/workflows/pr-labeler.yml | 10 ++++------ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 4afa0510e8..49e81226a2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,5 +1,5 @@ # Add 'Terraform' label to changes in the following folders (includes subfolders) -"Terraform": +Terraform: - any: - changed-files: - any-glob-to-any-file: @@ -16,14 +16,14 @@ - 'content/terraform-plugin-log/**' # Add 'Vault' label to changes in the following folders (includes subfolders) -"Vault Docs": +Vault Docs: - any: - changed-files: - any-glob-to-any-file: - 'content/vault/**' # Add 'WAF' label to changes in the following folders (includes subfolders) -"WAF": +WAF: - any: - changed-files: - any-glob-to-any-file: @@ -31,5 +31,5 @@ # Add 'Release' label to any PR that is opened against a release branch. # For example, vault/202509 (monthly release) or vault/1.21.x (major release) -"Release": - - base-branch: 'vault/*' \ No newline at end of file +Release: +- base-branch: 'vault/*' \ No newline at end of file diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 48dc3e15af..1172953460 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -14,10 +14,8 @@ jobs: permissions: contents: read pull-requests: write - steps: - - id: apply-the-label - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - sync-labels: true \ No newline at end of file + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true \ No newline at end of file From b6d609e18cb819ee3ee8c97fdb44850a2c790b13 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 12:32:38 -0700 Subject: [PATCH 44/99] save --- .github/labeler.yml | 7 +------ .github/workflows/pr-labeler.yml | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 49e81226a2..268f9ea54b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -27,9 +27,4 @@ WAF: - any: - changed-files: - any-glob-to-any-file: - - 'well-architected-framework/**' - -# Add 'Release' label to any PR that is opened against a release branch. -# For example, vault/202509 (monthly release) or vault/1.21.x (major release) -Release: -- base-branch: 'vault/*' \ No newline at end of file + - 'well-architected-framework/**' \ No newline at end of file diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 1172953460..c2561da042 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -15,7 +15,7 @@ jobs: contents: read pull-requests: write steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" sync-labels: true \ No newline at end of file From 6a1191198bfec4cb965755296daa6f6d09860ea4 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 13:45:34 -0700 Subject: [PATCH 45/99] sace --- .github/labeler.yml | 103 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 82 insertions(+), 21 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 268f9ea54b..1f2b99949c 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,30 +1,91 @@ -# Add 'Terraform' label to changes in the following folders (includes subfolders) -Terraform: +# Add a Terraform label to changes under the related folders: +# +# Folder | Labels +# --------------------------- | ------------------------------------------------ +# terraform | Terraform CE +# terraform-cdk | None +# terraform-docs-agents | Terraform agents +# terraform-docs-common | HCP Terraform +# terraform-enterprise | Terraform Enterprise +# terraform-migrate | Terraform migrate +# terraform-plugin-framework | TF Plugin Framework +# terraform-plugin-log | None +# terraform-plugin-mux | None +# terraform-plugin-sdk | None +# terraform-plugin-testing | None + +Terraform CE: +- any: + - changed-files: + - any-glob-to-any-file: [ + 'content/terraform/**' + ] + +Terraform agents: +- any: + - changed-files: + - any-glob-to-any-file: [ + 'content/terraform/**' + ] + +HCP Terraform: +- any: + - changed-files: + - any-glob-to-any-file: [ + 'content/terraform/**' + ] + +Terraform Enterprise: +- any: + - changed-files: + - any-glob-to-any-file: [ + 'content/terraform-enterprise/**' + ] + +Terraform migrate: - any: - changed-files: - - any-glob-to-any-file: - - 'content/terraform/**' - - 'content/terraform-enterprise/**' - - 'content/terraform-plugin-mux/**' - - 'content/terraform-cdk/**' - - 'content/terraform-migrate/**' - - 'content/terraform-plugin-sdk/**' - - 'content/terraform-docs-agents/**' - - 'content/terraform-plugin-framework/**' - - 'content/terraform-plugin-testing/**' - - 'content/terraform-docs-common/**' - - 'content/terraform-plugin-log/**' + - any-glob-to-any-file: [ + 'content/terraform-docs-common/**' + ] -# Add 'Vault' label to changes in the following folders (includes subfolders) -Vault Docs: +TF Plugin Framework: - any: - changed-files: - - any-glob-to-any-file: - - 'content/vault/**' + - any-glob-to-any-file: [ + 'content/terraform-plugin-framework/**' + ] + + +# Add 'Vault' label to changes under 'content/vault' +# +# Label | Rule +# --------------- | ------------------------------------------------------------ +# Vault | Default; applies to all doc updates +# Vault IC update | Updates on "Important changes" related docs + +Vault: +- any: + - changed-files: + - any-glob-to-any-file: ['content/vault/**'] + +Vault IC: +- any: + - changed-files: + - any-glob-to-any-file: [ + 'content/vault/global/partials/important-changes/**', + 'content/vault/*/content/docs/updates/change-tracker.mdx', + 'content/vault/*/content/docs/updates/important-changes.mdx', + 'content/vault/*/content/docs/updates/lts-tracker.mdx' + ] + +# Add 'WAF' label to changes under 'content/well-architected-framework' +# +# Label | Rule +# --------------- | ------------------------------------------------------------ +# WAF | Default; applies to all doc updates -# Add 'WAF' label to changes in the following folders (includes subfolders) WAF: - any: - changed-files: - - any-glob-to-any-file: - - 'well-architected-framework/**' \ No newline at end of file + - any-glob-to-any-file: ['well-architected-framework/**'] \ No newline at end of file From 61ceb0d2396c55ce8a172c04d45b829fd08cfe1f Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 15:12:08 -0700 Subject: [PATCH 46/99] save --- .github/labeler.yml | 2 +- .github/workflows/vault-pr.yml | 75 ++++++++++++++++++++++------------ 2 files changed, 49 insertions(+), 28 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 1f2b99949c..ec3e080919 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -88,4 +88,4 @@ Vault IC: WAF: - any: - changed-files: - - any-glob-to-any-file: ['well-architected-framework/**'] \ No newline at end of file + - any-glob-to-any-file: ['content/well-architected-framework/**'] \ No newline at end of file diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 4d01fdebf9..76b8712e2a 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -1,38 +1,59 @@ -# This workflow will triage pull requests and apply a label based on the -# paths that are modified in the pull request. -# -# To use this workflow, you will need to set up a .github/labeler.yml -# file with configuration. For more information, see: -# https://github.com/actions/labeler +# Add comments to Vault PRs with a reminder about release branches +# github.base_ref (target) +# github.head_ref (source) -name: TESTING - Process content PR -run-name: 🚀 Processing content PR +name: Process Vault PR +run-name: 🚀 Processing Vault PR on: [pull_request_target] +env: + + pub_comment: | + ## Publication expectations + + Content changes publish + jobs: - label-the-pr: + add-pub-comment: + name: Add release comment runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - steps: - - id: apply-the-label - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - sync-labels: true + - name: Initial comment on PR + uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + header: Publication notice + message: ${{ env.pub_comment }} - greeting: + update-pub-comment: + name: Update with pb runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write steps: - - uses: actions/first-interaction@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: "Message that will be displayed on users' first issue" - pr-message: "Message that will be displayed on users' first pull request" \ No newline at end of file + - name: PR publishes immediately + if: ${{ github.base_ref }} == "main" + uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 + with: + header: Publication notice + message: | + ${{ env.pub_comment }} + This PR will publish as soon as the PR merges + + - name: PR publishes with monthly release + if: ${{ github.base_ref }} ~= "vault/[0-9]{4}" + uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 + with: + header: Publication notice + message: | + ${{ env.pub_comment }} + This PR will publish with the monthly update + + - name: PR publishes with next major release + if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" + uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 + with: + header: Publication notice + message: | + ${{ env.pub_comment }} + This PR will publish with the next major release \ No newline at end of file From f21815c8cdd25b81b41829fe48718d1d87f78383 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 15:53:22 -0700 Subject: [PATCH 47/99] save --- .github/workflows/vault-pr.yml | 39 +++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 76b8712e2a..da0d35420e 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -8,11 +8,20 @@ run-name: 🚀 Processing Vault PR on: [pull_request_target] env: - + yes: âœ”ī¸ + no: ❌ + idk: âšī¸ pub_comment: | - ## Publication expectations + ## 🕛 Publication timeline + + Content changes publish based on the merge target - Content changes publish + Branch | Publication timeline | Selection + ----------------- | --------------------- | --------- + + main_entry: "`main` | Immediately |" + monthly_entry: "`vault/YYYYMM` | End of the month |" + release_entry: "`vault/` | Next major release |" jobs: @@ -24,30 +33,38 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - header: Publication notice - message: ${{ env.pub_comment }} + header: Publication notice [${{ github.base_ref }}] + message: | + ${{ env.pub_comment }} + ${{ env.main_entry }} ${{ env.idk }} + ${{ env.monthly_entry }} ${{ env.idk }} + ${{ env.release_entry }} ${{ env.idk }} update-pub-comment: name: Update with pb runs-on: ubuntu-latest steps: - name: PR publishes immediately - if: ${{ github.base_ref }} == "main" + if: ${{ github.base_ref }} == "refs/head/main" uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice message: | ${{ env.pub_comment }} - This PR will publish as soon as the PR merges + ${{ env.main_entry }} ${{ env.yes }} + ${{ env.monthly_entry }} ${{ env.no }} + ${{ env.release_entry }} ${{ env.no }} - name: PR publishes with monthly release - if: ${{ github.base_ref }} ~= "vault/[0-9]{4}" + if: ${{ github.base_ref }} ~= "vault/[0-9]{6}" uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice message: | ${{ env.pub_comment }} - This PR will publish with the monthly update + ${{ env.main_entry }} ${{ env.no }} + ${{ env.monthly_entry }} ${{ env.yes }} + ${{ env.release_entry }} ${{ env.no }} - name: PR publishes with next major release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" @@ -56,4 +73,6 @@ jobs: header: Publication notice message: | ${{ env.pub_comment }} - This PR will publish with the next major release \ No newline at end of file + ${{ env.main_entry }} ${{ env.no }} + ${{ env.monthly_entry }} ${{ env.no }} + ${{ env.release_entry }} ${{ env.yes }} From fbcc30dd17847857c301b474e2a6d291066edc5f Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 15:58:14 -0700 Subject: [PATCH 48/99] svave --- .github/workflows/vault-pr.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index da0d35420e..929375e716 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -16,12 +16,12 @@ env: Content changes publish based on the merge target - Branch | Publication timeline | Selection - ----------------- | --------------------- | --------- + | Branch | Publication timeline | Selection + | ----------------- | --------------------- | --------- - main_entry: "`main` | Immediately |" - monthly_entry: "`vault/YYYYMM` | End of the month |" - release_entry: "`vault/` | Next major release |" + main_entry: "| `main` | Immediately |" + monthly_entry: "| `vault/YYYYMM` | End of the month |" + release_entry: "| `vault/` | Next major release |" jobs: From 1a6162f870970b70d973f4450ec350d920d2678d Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 15:59:03 -0700 Subject: [PATCH 49/99] save --- .github/workflows/vault-pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 929375e716..a71b1879b6 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -14,7 +14,8 @@ env: pub_comment: | ## 🕛 Publication timeline - Content changes publish based on the merge target + Content changes publish based on the merge target. + ${{ github.base_ref }} | Branch | Publication timeline | Selection | ----------------- | --------------------- | --------- From 6f8b68eeda4fe085efcefb6ecf5c6148ceca1dcc Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:00:06 -0700 Subject: [PATCH 50/99] save --- .github/workflows/vault-pr.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index a71b1879b6..3284d0f574 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -19,7 +19,6 @@ env: | Branch | Publication timeline | Selection | ----------------- | --------------------- | --------- - main_entry: "| `main` | Immediately |" monthly_entry: "| `vault/YYYYMM` | End of the month |" release_entry: "| `vault/` | Next major release |" From 0a0a6018f381b096d433dabcfd6bca9b547b6d77 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:03:14 -0700 Subject: [PATCH 51/99] s --- .github/workflows/vault-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 3284d0f574..5373069a18 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest steps: - name: PR publishes immediately - if: ${{ github.base_ref }} == "refs/head/main" + if: ${{ github.base_ref }} == "main" uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice From 27eaaf328ae08c62c0678b8935b5d4558c08c411 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:18:42 -0700 Subject: [PATCH 52/99] s --- .github/workflows/vault-pr.yml | 60 +++++++++++++++++----------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 5373069a18..e41d1fd918 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -11,21 +11,25 @@ env: yes: âœ”ī¸ no: ❌ idk: âšī¸ + main_select: ${{ env.idk }} + month_select: ${{ env.idk }} + release_select: ${{ env.idk }} pub_comment: | ## 🕛 Publication timeline - Content changes publish based on the merge target. - ${{ github.base_ref }} - - | Branch | Publication timeline | Selection - | ----------------- | --------------------- | --------- - main_entry: "| `main` | Immediately |" - monthly_entry: "| `vault/YYYYMM` | End of the month |" - release_entry: "| `vault/` | Next major release |" + Content changes publish based on the merge target [${{ github.base_ref }}] + pub_table: | + Branch | Publication timeline | Selection + ----------------- | --------------------- | --------- + `main` | Immediately | ${{ env.main_select }} + `vault/YYYYMM` | End of the month | ${{ env.month_select }} + `vault/` | Next major release | ${{ env.release_select }} jobs: add-pub-comment: + needs: + if: github.repository == 'octo-org/octo-repo-prod' name: Add release comment runs-on: ubuntu-latest steps: @@ -36,9 +40,8 @@ jobs: header: Publication notice [${{ github.base_ref }}] message: | ${{ env.pub_comment }} - ${{ env.main_entry }} ${{ env.idk }} - ${{ env.monthly_entry }} ${{ env.idk }} - ${{ env.release_entry }} ${{ env.idk }} + ${{ env.pub_table }} + update-pub-comment: name: Update with pb @@ -46,25 +49,24 @@ jobs: steps: - name: PR publishes immediately if: ${{ github.base_ref }} == "main" - uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 - with: - header: Publication notice - message: | - ${{ env.pub_comment }} - ${{ env.main_entry }} ${{ env.yes }} - ${{ env.monthly_entry }} ${{ env.no }} - ${{ env.release_entry }} ${{ env.no }} + run: | + echo "main_select=${{ env.yes }}" >> $GITHUB_ENV + echo "month_select=${{ env.no }}" >> $GITHUB_ENV + echo "release_select=${{ env.no }}" >> $GITHUB_ENV - name: PR publishes with monthly release if: ${{ github.base_ref }} ~= "vault/[0-9]{6}" - uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 - with: - header: Publication notice - message: | - ${{ env.pub_comment }} - ${{ env.main_entry }} ${{ env.no }} - ${{ env.monthly_entry }} ${{ env.yes }} - ${{ env.release_entry }} ${{ env.no }} + run: | + echo "main_select=${{ env.no }}" >> $GITHUB_ENV + echo "month_select=${{ env.yes }}" >> $GITHUB_ENV + echo "release_select=${{ env.no }}" >> $GITHUB_ENV + + - name: PR publishes with next major release + if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" + run: | + echo "main_select=${{ env.no }}" >> $GITHUB_ENV + echo "month_select=${{ env.no }}" >> $GITHUB_ENV + echo "release_select=${{ env.yes }}" >> $GITHUB_ENV - name: PR publishes with next major release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" @@ -73,6 +75,4 @@ jobs: header: Publication notice message: | ${{ env.pub_comment }} - ${{ env.main_entry }} ${{ env.no }} - ${{ env.monthly_entry }} ${{ env.no }} - ${{ env.release_entry }} ${{ env.yes }} + ${{ env.pub_table }} From 7932ad47a7a5471e50a82fe17431313a2328c711 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:26:03 -0700 Subject: [PATCH 53/99] save --- .github/workflows/vault-pr.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index e41d1fd918..087f6d411e 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -10,10 +10,9 @@ on: [pull_request_target] env: yes: âœ”ī¸ no: ❌ - idk: âšī¸ - main_select: ${{ env.idk }} - month_select: ${{ env.idk }} - release_select: ${{ env.idk }} + main_select: âšī¸ + month_select: âšī¸ + release_select: âšī¸ pub_comment: | ## 🕛 Publication timeline @@ -21,14 +20,13 @@ env: pub_table: | Branch | Publication timeline | Selection ----------------- | --------------------- | --------- - `main` | Immediately | ${{ env.main_select }} - `vault/YYYYMM` | End of the month | ${{ env.month_select }} - `vault/` | Next major release | ${{ env.release_select }} + `main` | Immediately | ${{ github.env.main_select }} + `vault/YYYYMM` | End of the month | ${{ github.env.month_select }} + `vault/` | Next major release | ${{ github.env.release_select }} jobs: add-pub-comment: - needs: if: github.repository == 'octo-org/octo-repo-prod' name: Add release comment runs-on: ubuntu-latest From 248183adad4439ed598c9e3501e047e9a9209b8b Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:27:35 -0700 Subject: [PATCH 54/99] s --- .github/workflows/vault-pr.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 087f6d411e..fc982e056b 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -37,8 +37,8 @@ jobs: repo-token: "${{ secrets.GITHUB_TOKEN }}" header: Publication notice [${{ github.base_ref }}] message: | - ${{ env.pub_comment }} - ${{ env.pub_table }} + ${{ github.env.pub_comment }} + ${{ github.env.pub_table }} update-pub-comment: @@ -48,23 +48,23 @@ jobs: - name: PR publishes immediately if: ${{ github.base_ref }} == "main" run: | - echo "main_select=${{ env.yes }}" >> $GITHUB_ENV - echo "month_select=${{ env.no }}" >> $GITHUB_ENV - echo "release_select=${{ env.no }}" >> $GITHUB_ENV + echo "main_select=${{ github.env.yes }}" >> $GITHUB_ENV + echo "month_select=${{ github.env.no }}" >> $GITHUB_ENV + echo "release_select=${{ github.env.no }}" >> $GITHUB_ENV - name: PR publishes with monthly release if: ${{ github.base_ref }} ~= "vault/[0-9]{6}" run: | - echo "main_select=${{ env.no }}" >> $GITHUB_ENV - echo "month_select=${{ env.yes }}" >> $GITHUB_ENV - echo "release_select=${{ env.no }}" >> $GITHUB_ENV + echo "main_select=${{ github.env.no }}" >> $GITHUB_ENV + echo "month_select=${{ github.env.yes }}" >> $GITHUB_ENV + echo "release_select=${{ github.env.no }}" >> $GITHUB_ENV - name: PR publishes with next major release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" run: | - echo "main_select=${{ env.no }}" >> $GITHUB_ENV - echo "month_select=${{ env.no }}" >> $GITHUB_ENV - echo "release_select=${{ env.yes }}" >> $GITHUB_ENV + echo "main_select=${{ github.env.no }}" >> $GITHUB_ENV + echo "month_select=${{ github.env.no }}" >> $GITHUB_ENV + echo "release_select=${{ github.env.yes }}" >> $GITHUB_ENV - name: PR publishes with next major release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" @@ -72,5 +72,5 @@ jobs: with: header: Publication notice message: | - ${{ env.pub_comment }} - ${{ env.pub_table }} + ${{ github.env.pub_comment }} + ${{ github.env.pub_table }} From b7c608d1995576e6d15d020d3b4e7017246ec7cb Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:29:28 -0700 Subject: [PATCH 55/99] s --- .github/workflows/vault-pr.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index fc982e056b..484f434ea3 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -16,7 +16,7 @@ env: pub_comment: | ## 🕛 Publication timeline - Content changes publish based on the merge target [${{ github.base_ref }}] + Content changes publish based on the merge target [`${{ github.base_ref }}`] pub_table: | Branch | Publication timeline | Selection ----------------- | --------------------- | --------- @@ -27,7 +27,6 @@ env: jobs: add-pub-comment: - if: github.repository == 'octo-org/octo-repo-prod' name: Add release comment runs-on: ubuntu-latest steps: From d313e4cf3aae2cccbf9762a28b87ddf6c9916e18 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:31:12 -0700 Subject: [PATCH 56/99] s --- .github/workflows/vault-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 484f434ea3..c6f55eb30f 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -34,7 +34,7 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - header: Publication notice [${{ github.base_ref }}] + header: Publication notice message: | ${{ github.env.pub_comment }} ${{ github.env.pub_table }} From 1e30e1dcb94213603a8a3c551b53488cf9a4c293 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:35:07 -0700 Subject: [PATCH 57/99] s --- .github/workflows/vault-pr.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index c6f55eb30f..924595f252 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -10,14 +10,15 @@ on: [pull_request_target] env: yes: âœ”ī¸ no: ❌ - main_select: âšī¸ - month_select: âšī¸ - release_select: âšī¸ + idk: âšī¸ + main_select: ${{ github.env.idk }} + month_select: ${{ github.env.idk }} + release_select: ${{ github.env.idk }} pub_comment: | ## 🕛 Publication timeline Content changes publish based on the merge target [`${{ github.base_ref }}`] - pub_table: | + Branch | Publication timeline | Selection ----------------- | --------------------- | --------- `main` | Immediately | ${{ github.env.main_select }} @@ -37,11 +38,10 @@ jobs: header: Publication notice message: | ${{ github.env.pub_comment }} - ${{ github.env.pub_table }} update-pub-comment: - name: Update with pb + name: Add timeline selection runs-on: ubuntu-latest steps: - name: PR publishes immediately @@ -65,11 +65,10 @@ jobs: echo "month_select=${{ github.env.no }}" >> $GITHUB_ENV echo "release_select=${{ github.env.yes }}" >> $GITHUB_ENV - - name: PR publishes with next major release + - name: Update publication notice if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice message: | ${{ github.env.pub_comment }} - ${{ github.env.pub_table }} From b5e9d079014261e817c57c53845f63bbb4b1b04b Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:37:06 -0700 Subject: [PATCH 58/99] s --- .github/workflows/vault-pr.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 924595f252..ee0e688fbe 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -34,7 +34,6 @@ jobs: - name: Initial comment on PR uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" header: Publication notice message: | ${{ github.env.pub_comment }} From 56cc96198e01209c8e4f334650676b2e0a9e87d7 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:38:14 -0700 Subject: [PATCH 59/99] s --- .github/workflows/vault-pr.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index ee0e688fbe..7093ea9f8e 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -35,8 +35,7 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: | - ${{ github.env.pub_comment }} + message: ${{ github.env.pub_comment }} update-pub-comment: @@ -69,5 +68,4 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: | - ${{ github.env.pub_comment }} + message: ${{ github.env.pub_comment }} From e5155770a76de3efe7d489ab3c98ffec323e8345 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:39:54 -0700 Subject: [PATCH 60/99] s --- .github/workflows/vault-pr.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 7093ea9f8e..05513b901e 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -35,7 +35,7 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ github.env.pub_comment }} + message: ${{ env.pub_comment }} update-pub-comment: @@ -45,27 +45,27 @@ jobs: - name: PR publishes immediately if: ${{ github.base_ref }} == "main" run: | - echo "main_select=${{ github.env.yes }}" >> $GITHUB_ENV - echo "month_select=${{ github.env.no }}" >> $GITHUB_ENV - echo "release_select=${{ github.env.no }}" >> $GITHUB_ENV + echo "main_select=${{ env.yes }}" >> $GITHUB_ENV + echo "month_select=${{ env.no }}" >> $GITHUB_ENV + echo "release_select=${{ env.no }}" >> $GITHUB_ENV - name: PR publishes with monthly release if: ${{ github.base_ref }} ~= "vault/[0-9]{6}" run: | - echo "main_select=${{ github.env.no }}" >> $GITHUB_ENV - echo "month_select=${{ github.env.yes }}" >> $GITHUB_ENV - echo "release_select=${{ github.env.no }}" >> $GITHUB_ENV + echo "main_select=${{ env.no }}" >> $GITHUB_ENV + echo "month_select=${{ env.yes }}" >> $GITHUB_ENV + echo "release_select=${{ env.no }}" >> $GITHUB_ENV - name: PR publishes with next major release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" run: | - echo "main_select=${{ github.env.no }}" >> $GITHUB_ENV - echo "month_select=${{ github.env.no }}" >> $GITHUB_ENV - echo "release_select=${{ github.env.yes }}" >> $GITHUB_ENV + echo "main_select=${{ env.no }}" >> $GITHUB_ENV + echo "month_select=${{ env.no }}" >> $GITHUB_ENV + echo "release_select=${{ env.yes }}" >> $GITHUB_ENV - name: Update publication notice if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ github.env.pub_comment }} + message: ${{ env.pub_comment }} From b782ca1fac55a71eb615e9ecd1c9b50e25390c70 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:47:33 -0700 Subject: [PATCH 61/99] s --- .github/workflows/vault-pr.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 05513b901e..08bdd68e08 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -8,12 +8,9 @@ run-name: 🚀 Processing Vault PR on: [pull_request_target] env: - yes: âœ”ī¸ - no: ❌ - idk: âšī¸ - main_select: ${{ github.env.idk }} - month_select: ${{ github.env.idk }} - release_select: ${{ github.env.idk }} + main_select: âšī¸ + month_select: âšī¸ + release_select: âšī¸ pub_comment: | ## 🕛 Publication timeline @@ -35,12 +32,14 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ env.pub_comment }} - + message: ${{ github.env.pub_comment }} update-pub-comment: name: Add timeline selection runs-on: ubuntu-latest + env: + yes: âœ”ī¸ + no: ❌ steps: - name: PR publishes immediately if: ${{ github.base_ref }} == "main" @@ -68,4 +67,4 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ env.pub_comment }} + message: ${{ github.env.pub_comment }} From 345ae2afc0787d418e3e94b1db5a059849c3f508 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:57:46 -0700 Subject: [PATCH 62/99] s --- .github/workflows/vault-pr.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 08bdd68e08..d929d28d1b 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -18,9 +18,9 @@ env: Branch | Publication timeline | Selection ----------------- | --------------------- | --------- - `main` | Immediately | ${{ github.env.main_select }} - `vault/YYYYMM` | End of the month | ${{ github.env.month_select }} - `vault/` | Next major release | ${{ github.env.release_select }} + `main` | Immediately | ${{ env.main_select }} + `vault/YYYYMM` | End of the month | ${{ env.month_select }} + `vault/` | Next major release | ${{ env.release_select }} jobs: @@ -32,7 +32,7 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ github.env.pub_comment }} + message: ${{ env.pub_comment }} update-pub-comment: name: Add timeline selection @@ -44,27 +44,27 @@ jobs: - name: PR publishes immediately if: ${{ github.base_ref }} == "main" run: | - echo "main_select=${{ env.yes }}" >> $GITHUB_ENV - echo "month_select=${{ env.no }}" >> $GITHUB_ENV - echo "release_select=${{ env.no }}" >> $GITHUB_ENV + echo "main_select=${{ env.yes }}" >> "$GITHUB_ENV" + echo "month_select=${{ env.no }}" >> "$GITHUB_ENV" + echo "release_select=${{ env.no }}" >> "$GITHUB_ENV" - name: PR publishes with monthly release if: ${{ github.base_ref }} ~= "vault/[0-9]{6}" run: | - echo "main_select=${{ env.no }}" >> $GITHUB_ENV - echo "month_select=${{ env.yes }}" >> $GITHUB_ENV - echo "release_select=${{ env.no }}" >> $GITHUB_ENV + echo "main_select=${{ env.no }}" >> "$GITHUB_ENV" + echo "month_select=${{ env.yes }}" >> "$GITHUB_ENV" + echo "release_select=${{ env.no }}" >> "$GITHUB_ENV" - name: PR publishes with next major release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" run: | - echo "main_select=${{ env.no }}" >> $GITHUB_ENV - echo "month_select=${{ env.no }}" >> $GITHUB_ENV - echo "release_select=${{ env.yes }}" >> $GITHUB_ENV + echo "main_select=${{ env.no }}" >> "$GITHUB_ENV" + echo "month_select=${{ env.no }}" >> "$GITHUB_ENV" + echo "release_select=${{ env.yes }}" >> "$GITHUB_ENV" - name: Update publication notice if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ github.env.pub_comment }} + message: ${{ env.pub_comment }} From 26b6779f9381c5a1c0568870dfd5f7b29aae05e4 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Fri, 5 Sep 2025 17:01:59 -0700 Subject: [PATCH 63/99] s --- .github/workflows/vault-pr.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index d929d28d1b..ee3858f795 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -18,9 +18,9 @@ env: Branch | Publication timeline | Selection ----------------- | --------------------- | --------- - `main` | Immediately | ${{ env.main_select }} - `vault/YYYYMM` | End of the month | ${{ env.month_select }} - `vault/` | Next major release | ${{ env.release_select }} + `main` | Immediately | ${{ github.env.main_select }} + `vault/YYYYMM` | End of the month | ${{ github.env.month_select }} + `vault/` | Next major release | ${{ github.env.release_select }} jobs: @@ -32,7 +32,7 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ env.pub_comment }} + message: ${{ github.env.pub_comment }} update-pub-comment: name: Add timeline selection @@ -67,4 +67,4 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ env.pub_comment }} + message: ${{ github.env.pub_comment }} From ce9b809ce365a6d58723e629821b7be65efaaf3b Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 11:39:49 -0700 Subject: [PATCH 64/99] s --- .github/workflows/vault-pr.yml | 57 +++++++++++++++++++--------------- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index ee3858f795..6041f0f9f3 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -8,63 +8,70 @@ run-name: 🚀 Processing Vault PR on: [pull_request_target] env: - main_select: âšī¸ - month_select: âšī¸ - release_select: âšī¸ - pub_comment: | + yes: âœ”ī¸ + no: ❌ + comment_text: | ## 🕛 Publication timeline - + Content changes publish based on the merge target [`${{ github.base_ref }}`] Branch | Publication timeline | Selection ----------------- | --------------------- | --------- - `main` | Immediately | ${{ github.env.main_select }} - `vault/YYYYMM` | End of the month | ${{ github.env.month_select }} - `vault/` | Next major release | ${{ github.env.release_select }} + `main` | Immediately | âšī¸ + `vault/YYYYMM` | End of the month | âšī¸ + `vault/` | Next major release | âšī¸ jobs: add-pub-comment: - name: Add release comment + name: Add initial comment runs-on: ubuntu-latest + steps: - name: Initial comment on PR uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ github.env.pub_comment }} + message: ${{ github.env.comment_text }} - update-pub-comment: - name: Add timeline selection + set-pub-timeline: + name: Make timeline selection runs-on: ubuntu-latest - env: - yes: âœ”ī¸ - no: ❌ + outputs: + main_select: ${{ steps.check-main.outputs.main_select }} + month_select: ${{ steps.check-month.outputs.month_select }} + release_select: ${{ steps.check-release.outputs.release_select }} steps: - name: PR publishes immediately + id: check-main if: ${{ github.base_ref }} == "main" run: | - echo "main_select=${{ env.yes }}" >> "$GITHUB_ENV" - echo "month_select=${{ env.no }}" >> "$GITHUB_ENV" - echo "release_select=${{ env.no }}" >> "$GITHUB_ENV" + echo "main_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" - name: PR publishes with monthly release + id: check-month if: ${{ github.base_ref }} ~= "vault/[0-9]{6}" run: | - echo "main_select=${{ env.no }}" >> "$GITHUB_ENV" - echo "month_select=${{ env.yes }}" >> "$GITHUB_ENV" - echo "release_select=${{ env.no }}" >> "$GITHUB_ENV" + echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" - name: PR publishes with next major release + id: check-release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" run: | - echo "main_select=${{ env.no }}" >> "$GITHUB_ENV" - echo "month_select=${{ env.no }}" >> "$GITHUB_ENV" - echo "release_select=${{ env.yes }}" >> "$GITHUB_ENV" + echo "release_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" + update-pub-timeline: + runs-on: ubuntu-latest + needs: set-pub-timeline + steps: - name: Update publication notice if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ github.env.pub_comment }} + message: | + ${{ github.env.pub_comment }} + - env: + main_select: ${{ needs.set-pub-timeline.outputs.main_select }} + month_select: ${{ needs.set-pub-timeline.outputs.month_select }} + release_select: ${{ needs.set-pub-timeline.outputs.release_select }} \ No newline at end of file From 5d191be3dec8c4666cbd46e38bd5f8417fd2ec54 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 11:47:53 -0700 Subject: [PATCH 65/99] s --- .github/workflows/vault-pr.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 6041f0f9f3..009b18bb87 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -17,22 +17,26 @@ env: Branch | Publication timeline | Selection ----------------- | --------------------- | --------- - `main` | Immediately | âšī¸ - `vault/YYYYMM` | End of the month | âšī¸ - `vault/` | Next major release | âšī¸ + `main` | Immediately | ${{ env.main_select }} + `vault/YYYYMM` | End of the month | ${{ env.month_select }} + `vault/` | Next major release | ${{ env.release_select }} jobs: add-pub-comment: name: Add initial comment runs-on: ubuntu-latest - + env: + main_select: âšī¸ + month_select: âšī¸ + release_select: âšī¸ + local_comment: ${{ github.env.comment_text }} steps: - name: Initial comment on PR uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ github.env.comment_text }} + message: ${{ env.local_comment }} set-pub-timeline: name: Make timeline selection @@ -61,6 +65,11 @@ jobs: echo "release_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" update-pub-timeline: + env: + main_select: ${{ needs.set-pub-timeline.outputs.main_select }} + month_select: ${{ needs.set-pub-timeline.outputs.month_select }} + release_select: ${{ needs.set-pub-timeline.outputs.release_select }} + local_comment: ${{ github.env.comment_text }} runs-on: ubuntu-latest needs: set-pub-timeline steps: @@ -69,9 +78,4 @@ jobs: uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: | - ${{ github.env.pub_comment }} - - env: - main_select: ${{ needs.set-pub-timeline.outputs.main_select }} - month_select: ${{ needs.set-pub-timeline.outputs.month_select }} - release_select: ${{ needs.set-pub-timeline.outputs.release_select }} \ No newline at end of file + message: ${{ env.local_comment }} \ No newline at end of file From d113e8d3a85786b0da64528821583f1924f6eb42 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 13:21:51 -0700 Subject: [PATCH 66/99] s --- .github/workflows/vault-pr.yml | 38 ++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 009b18bb87..ffe9dc1c2e 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -10,16 +10,9 @@ on: [pull_request_target] env: yes: âœ”ī¸ no: ❌ - comment_text: | - ## 🕛 Publication timeline - - Content changes publish based on the merge target [`${{ github.base_ref }}`] - - Branch | Publication timeline | Selection - ----------------- | --------------------- | --------- - `main` | Immediately | ${{ env.main_select }} - `vault/YYYYMM` | End of the month | ${{ env.month_select }} - `vault/` | Next major release | ${{ env.release_select }} + main_select: âšī¸ + month_select: âšī¸ + release_select: âšī¸ jobs: @@ -27,10 +20,16 @@ jobs: name: Add initial comment runs-on: ubuntu-latest env: - main_select: âšī¸ - month_select: âšī¸ - release_select: âšī¸ - local_comment: ${{ github.env.comment_text }} + local_comment: | + ## 🕛 Publication timeline + + Content changes publish based on the merge target [`${{ github.base_ref }}`] + + Branch | Publication timeline | Selection + ----------------- | --------------------- | --------- + `main` | Immediately | ${{ github.env.main_select }} + `vault/YYYYMM` | End of the month | ${{ github.env.month_select }} + `vault/` | Next major release | ${{ github.env.release_select }} steps: - name: Initial comment on PR uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 @@ -69,7 +68,16 @@ jobs: main_select: ${{ needs.set-pub-timeline.outputs.main_select }} month_select: ${{ needs.set-pub-timeline.outputs.month_select }} release_select: ${{ needs.set-pub-timeline.outputs.release_select }} - local_comment: ${{ github.env.comment_text }} + local_comment: | + ## 🕛 Publication timeline + + Content changes publish based on the merge target [`${{ github.base_ref }}`] + + Branch | Publication timeline | Selection + ----------------- | --------------------- | --------- + `main` | Immediately | ${{ needs.set-pub-timeline.outputs.main_select }} + `vault/YYYYMM` | End of the month | ${{ needs.set-pub-timeline.outputs.month_select }} + `vault/` | Next major release | ${{ needs.set-pub-timeline.outputs.release_select }} runs-on: ubuntu-latest needs: set-pub-timeline steps: From f6a0de9d49a50108fd3f6c810595d0ae231da6d0 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 13:34:16 -0700 Subject: [PATCH 67/99] s --- .github/workflows/vault-pr.yml | 64 +++++++++++----------------------- 1 file changed, 20 insertions(+), 44 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index ffe9dc1c2e..ccdbfa20f7 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -10,64 +10,40 @@ on: [pull_request_target] env: yes: âœ”ī¸ no: ❌ - main_select: âšī¸ - month_select: âšī¸ - release_select: âšī¸ - + idk: âšī¸ + main_select: "idk" + month_select: "idk" + release_select: "idk" jobs: - add-pub-comment: - name: Add initial comment - runs-on: ubuntu-latest - env: - local_comment: | - ## 🕛 Publication timeline - - Content changes publish based on the merge target [`${{ github.base_ref }}`] - - Branch | Publication timeline | Selection - ----------------- | --------------------- | --------- - `main` | Immediately | ${{ github.env.main_select }} - `vault/YYYYMM` | End of the month | ${{ github.env.month_select }} - `vault/` | Next major release | ${{ github.env.release_select }} - steps: - - name: Initial comment on PR - uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 - with: - header: Publication notice - message: ${{ env.local_comment }} - set-pub-timeline: name: Make timeline selection runs-on: ubuntu-latest - outputs: - main_select: ${{ steps.check-main.outputs.main_select }} - month_select: ${{ steps.check-month.outputs.month_select }} - release_select: ${{ steps.check-release.outputs.release_select }} steps: - - name: PR publishes immediately + - name: Set defaults + id: set-defaults + run: | + echo "main_select=${{ github.env.idk }}" >> "$GITHUB_ENV" + echo "month_select=${{ github.env.idk }}" >> "$GITHUB_ENV" + echo "month_select=${{ github.env.idk }}" >> "$GITHUB_ENV" + - name: Check main id: check-main if: ${{ github.base_ref }} == "main" run: | echo "main_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" - - - name: PR publishes with monthly release - id: check-month + - name: Check monthly update + id: check-monthly if: ${{ github.base_ref }} ~= "vault/[0-9]{6}" run: | echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" - - - name: PR publishes with next major release + - name: Check release id: check-release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" run: | - echo "release_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" - update-pub-timeline: + alert-pub-timeline: env: - main_select: ${{ needs.set-pub-timeline.outputs.main_select }} - month_select: ${{ needs.set-pub-timeline.outputs.month_select }} - release_select: ${{ needs.set-pub-timeline.outputs.release_select }} local_comment: | ## 🕛 Publication timeline @@ -75,13 +51,13 @@ jobs: Branch | Publication timeline | Selection ----------------- | --------------------- | --------- - `main` | Immediately | ${{ needs.set-pub-timeline.outputs.main_select }} - `vault/YYYYMM` | End of the month | ${{ needs.set-pub-timeline.outputs.month_select }} - `vault/` | Next major release | ${{ needs.set-pub-timeline.outputs.release_select }} + `main` | Immediately | ${{ github.env.main_select }} + `vault/YYYYMM` | End of the month | ${{ github.env.month_select }} + `vault/` | Next major release | ${{ github.env.release_select }} runs-on: ubuntu-latest needs: set-pub-timeline steps: - - name: Update publication notice + - name: Add publication notice if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: From 99457e9c2e974ae3b54de8f835d3871cff063da8 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 13:36:33 -0700 Subject: [PATCH 68/99] s --- .github/workflows/vault-pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index ccdbfa20f7..4890b49796 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -30,17 +30,17 @@ jobs: id: check-main if: ${{ github.base_ref }} == "main" run: | - echo "main_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "main_select=${{ env.yes }}" >> "$GITHUB_ENV" - name: Check monthly update id: check-monthly if: ${{ github.base_ref }} ~= "vault/[0-9]{6}" run: | - echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.yes }}" >> "$GITHUB_ENV" - name: Check release id: check-release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" run: | - echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.yes }}" >> "$GITHUB_ENV" alert-pub-timeline: env: From 96b3ae02a85400feec07f2e8729aa7c46c9d6c3d Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 13:37:18 -0700 Subject: [PATCH 69/99] s --- .github/workflows/vault-pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 4890b49796..46bf4d471f 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -43,6 +43,7 @@ jobs: echo "month_select=${{ env.yes }}" >> "$GITHUB_ENV" alert-pub-timeline: + name: Add publication alert env: local_comment: | ## 🕛 Publication timeline From c0d9b48d821fbfd0b928ab87c5b3d0642cefa61a Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 13:39:27 -0700 Subject: [PATCH 70/99] s --- .github/workflows/vault-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 46bf4d471f..ff855e14bc 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -25,7 +25,7 @@ jobs: run: | echo "main_select=${{ github.env.idk }}" >> "$GITHUB_ENV" echo "month_select=${{ github.env.idk }}" >> "$GITHUB_ENV" - echo "month_select=${{ github.env.idk }}" >> "$GITHUB_ENV" + echo "release_select=${{ github.env.idk }}" >> "$GITHUB_ENV" - name: Check main id: check-main if: ${{ github.base_ref }} == "main" @@ -40,7 +40,7 @@ jobs: id: check-release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" run: | - echo "month_select=${{ env.yes }}" >> "$GITHUB_ENV" + echo "release_select=${{ env.yes }}" >> "$GITHUB_ENV" alert-pub-timeline: name: Add publication alert From d0fa37bcf536817823dea8302eb9eed79f1452cf Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 13:40:28 -0700 Subject: [PATCH 71/99] s --- .github/workflows/vault-pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index ff855e14bc..7e1e59fff1 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -30,17 +30,17 @@ jobs: id: check-main if: ${{ github.base_ref }} == "main" run: | - echo "main_select=${{ env.yes }}" >> "$GITHUB_ENV" + echo "main_select=${{ github.env.yes }}" >> "$GITHUB_ENV" - name: Check monthly update id: check-monthly if: ${{ github.base_ref }} ~= "vault/[0-9]{6}" run: | - echo "month_select=${{ env.yes }}" >> "$GITHUB_ENV" + echo "month_select=${{ github.env.yes }}" >> "$GITHUB_ENV" - name: Check release id: check-release if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" run: | - echo "release_select=${{ env.yes }}" >> "$GITHUB_ENV" + echo "release_select=${{ github.env.yes }}" >> "$GITHUB_ENV" alert-pub-timeline: name: Add publication alert From c4cfea71b1b7c7f76022a87ea3144f4e48175ec4 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 14:16:27 -0700 Subject: [PATCH 72/99] idk --- .github/workflows/vault-pr.yml | 75 +++++++++++++++++----------------- 1 file changed, 37 insertions(+), 38 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 7e1e59fff1..8ef95907c3 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -11,56 +11,55 @@ env: yes: âœ”ī¸ no: ❌ idk: âšī¸ - main_select: "idk" - month_select: "idk" - release_select: "idk" + monthlyPattern: 'vault/([0-9]{6})' + releasePattern: 'vault/1\.([0-9]{2})\.x' jobs: - set-pub-timeline: + set-timeline: name: Make timeline selection runs-on: ubuntu-latest + outputs: + main_select: ${{ steps.check-target.outputs.main_select }} + month_select: ${{ steps.check-target.outputs.month_select }} + release_select: ${{ steps.check-target.outputs.release_select }} steps: - - name: Set defaults - id: set-defaults + - name: Check target + id: check-target run: | - echo "main_select=${{ github.env.idk }}" >> "$GITHUB_ENV" - echo "month_select=${{ github.env.idk }}" >> "$GITHUB_ENV" - echo "release_select=${{ github.env.idk }}" >> "$GITHUB_ENV" - - name: Check main - id: check-main - if: ${{ github.base_ref }} == "main" - run: | - echo "main_select=${{ github.env.yes }}" >> "$GITHUB_ENV" - - name: Check monthly update - id: check-monthly - if: ${{ github.base_ref }} ~= "vault/[0-9]{6}" - run: | - echo "month_select=${{ github.env.yes }}" >> "$GITHUB_ENV" - - name: Check release - id: check-release - if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" - run: | - echo "release_select=${{ github.env.yes }}" >> "$GITHUB_ENV" + if [[ "${{ github.base_ref }}" == 'main' ]]; then + echo "main_select=${{ github.env.yes }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" + elif [[ "${{ github.base_ref }}" =~ ${{ github.env.monthlyPattern }} ]]; then + echo "main_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ github.env.yes }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" + elif [[ "${{ github.base_ref }}" =~ ${{ github.env.releasePattern }} ]]; then + echo "main_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ github.env.yes }}" >> "$GITHUB_OUTPUT" + else + echo "main_select=${{ github.env.idk }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ github.env.idk }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ github.env.idk }}" >> "$GITHUB_OUTPUT" + fi alert-pub-timeline: - name: Add publication alert - env: - local_comment: | - ## 🕛 Publication timeline - - Content changes publish based on the merge target [`${{ github.base_ref }}`] - - Branch | Publication timeline | Selection - ----------------- | --------------------- | --------- - `main` | Immediately | ${{ github.env.main_select }} - `vault/YYYYMM` | End of the month | ${{ github.env.month_select }} - `vault/` | Next major release | ${{ github.env.release_select }} runs-on: ubuntu-latest - needs: set-pub-timeline + needs: set-timeline steps: - name: Add publication notice if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice - message: ${{ env.local_comment }} \ No newline at end of file + message: | + ## 🕛 Publication timeline + + Content changes publish based on the merge target [`${{ github.base_ref }}`] + + Branch | Publication timeline | Selection + ----------------- | --------------------- | --------- + `main` | Immediately | ${{ needs.set-timeline.outputs.main_select }} + `vault/YYYYMM` | End of the month | ${{ needs.set-timeline.outputs.month_select }} + `vault/` | Next major release | ${{ needs.set-timeline.outputs.release_select }} \ No newline at end of file From 70439db8c544b0ffd1d7c6cefad3cd63e9cdfe4e Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 14:20:23 -0700 Subject: [PATCH 73/99] a --- .github/workflows/vault-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 8ef95907c3..aa68bdc2d9 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -30,11 +30,11 @@ jobs: echo "main_select=${{ github.env.yes }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" - elif [[ "${{ github.base_ref }}" =~ ${{ github.env.monthlyPattern }} ]]; then + elif [[ "${{ github.base_ref }}" == ${{ github.env.monthlyPattern }} ]]; then echo "main_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ github.env.yes }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" - elif [[ "${{ github.base_ref }}" =~ ${{ github.env.releasePattern }} ]]; then + elif [[ "${{ github.base_ref }}" == ${{ github.env.releasePattern }} ]]; then echo "main_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ github.env.yes }}" >> "$GITHUB_OUTPUT" From ece32bf0b4b6a5f2ac0c65ab55b76fde2367f326 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 14:23:58 -0700 Subject: [PATCH 74/99] s --- .github/workflows/vault-pr.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index aa68bdc2d9..3e4c928051 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -27,21 +27,21 @@ jobs: id: check-target run: | if [[ "${{ github.base_ref }}" == 'main' ]]; then - echo "main_select=${{ github.env.yes }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" - elif [[ "${{ github.base_ref }}" == ${{ github.env.monthlyPattern }} ]]; then - echo "main_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ github.env.yes }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" - elif [[ "${{ github.base_ref }}" == ${{ github.env.releasePattern }} ]]; then - echo "main_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ github.env.no }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ github.env.yes }}" >> "$GITHUB_OUTPUT" + echo "main_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" + elif [[ "${{ github.base_ref }}" == ${{ env.monthlyPattern }} ]]; then + echo "main_select=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" + elif [[ "${{ github.base_ref }}" == ${{ env.releasePattern }} ]]; then + echo "main_select=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" else - echo "main_select=${{ github.env.idk }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ github.env.idk }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ github.env.idk }}" >> "$GITHUB_OUTPUT" + echo "main_select=${{ env.idk }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.idk }}" >> "$GITHUB_OUTPUT" + echo "month_select=${{ env.idk }}" >> "$GITHUB_OUTPUT" fi alert-pub-timeline: From 214fa7d9892bd23712e9ebca4ff00d832c366ff3 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 14:25:33 -0700 Subject: [PATCH 75/99] s --- .github/workflows/vault-pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 3e4c928051..579e9a9bcb 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -26,15 +26,15 @@ jobs: - name: Check target id: check-target run: | - if [[ "${{ github.base_ref }}" == 'main' ]]; then + if [[ "${{ github.base_ref }}" == "main" ]]; then echo "main_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" - elif [[ "${{ github.base_ref }}" == ${{ env.monthlyPattern }} ]]; then + elif [[ "${{ github.base_ref }}" =~ ${{ env.monthlyPattern }} ]]; then echo "main_select=${{ env.no }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" - elif [[ "${{ github.base_ref }}" == ${{ env.releasePattern }} ]]; then + elif [[ "${{ github.base_ref }}" =~ ${{ env.releasePattern }} ]]; then echo "main_select=${{ env.no }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" From 4e4934bebf8911665e18f2865d41674f0a075bd2 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 14:28:36 -0700 Subject: [PATCH 76/99] test --- .github/workflows/vault-pr.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 579e9a9bcb..540fe38631 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -5,7 +5,10 @@ name: Process Vault PR run-name: 🚀 Processing Vault PR -on: [pull_request_target] +on: + pull_request_target: + paths: + - content/vault/** env: yes: âœ”ī¸ @@ -29,19 +32,19 @@ jobs: if [[ "${{ github.base_ref }}" == "main" ]]; then echo "main_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "release_select=${{ env.no }}" >> "$GITHUB_OUTPUT" elif [[ "${{ github.base_ref }}" =~ ${{ env.monthlyPattern }} ]]; then echo "main_select=${{ env.no }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "release_select=${{ env.no }}" >> "$GITHUB_OUTPUT" elif [[ "${{ github.base_ref }}" =~ ${{ env.releasePattern }} ]]; then echo "main_select=${{ env.no }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "release_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" else echo "main_select=${{ env.idk }}" >> "$GITHUB_OUTPUT" echo "month_select=${{ env.idk }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ env.idk }}" >> "$GITHUB_OUTPUT" + echo "release_select=${{ env.idk }}" >> "$GITHUB_OUTPUT" fi alert-pub-timeline: From 677d86079db595a79aa41406a953ef6f0978fc00 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:16:37 -0700 Subject: [PATCH 77/99] s --- .github/workflows/vault-pr.yml | 78 +++++++++++++++++++++++----------- 1 file changed, 53 insertions(+), 25 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 540fe38631..325b1663a4 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -1,9 +1,11 @@ -# Add comments to Vault PRs with a reminder about release branches -# github.base_ref (target) -# github.head_ref (source) +# Process Vault PRs: +# +# (1) Add a comment that explains when the changes will publish +# (2) If the PR updates important changes, make sure the PR includes summary +# tables name: Process Vault PR -run-name: 🚀 Processing Vault PR +run-name: Process Vault PR on: pull_request_target: @@ -16,53 +18,79 @@ env: idk: âšī¸ monthlyPattern: 'vault/([0-9]{6})' releasePattern: 'vault/1\.([0-9]{2})\.x' + jobs: + # Figure out the publication timeline based on the target branch set-timeline: - name: Make timeline selection + name: Set publication timeline runs-on: ubuntu-latest outputs: - main_select: ${{ steps.check-target.outputs.main_select }} - month_select: ${{ steps.check-target.outputs.month_select }} - release_select: ${{ steps.check-target.outputs.release_select }} + mainSelect: ${{ steps.check-target.outputs.mainSelect }} + monthSelect: ${{ steps.check-target.outputs.monthSelect }} + releaseSelect: ${{ steps.check-target.outputs.releaseSelect }} steps: - name: Check target id: check-target run: | if [[ "${{ github.base_ref }}" == "main" ]]; then - echo "main_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" - echo "release_select=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "mainSelect=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "monthSelect=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "releaseSelect=${{ env.no }}" >> "$GITHUB_OUTPUT" elif [[ "${{ github.base_ref }}" =~ ${{ env.monthlyPattern }} ]]; then - echo "main_select=${{ env.no }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" - echo "release_select=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "mainSelect=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "monthSelect=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "releaseSelect=${{ env.no }}" >> "$GITHUB_OUTPUT" elif [[ "${{ github.base_ref }}" =~ ${{ env.releasePattern }} ]]; then - echo "main_select=${{ env.no }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ env.no }}" >> "$GITHUB_OUTPUT" - echo "release_select=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "mainSelect=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "monthSelect=${{ env.no }}" >> "$GITHUB_OUTPUT" + echo "releaseSelect=${{ env.yes }}" >> "$GITHUB_OUTPUT" else - echo "main_select=${{ env.idk }}" >> "$GITHUB_OUTPUT" - echo "month_select=${{ env.idk }}" >> "$GITHUB_OUTPUT" - echo "release_select=${{ env.idk }}" >> "$GITHUB_OUTPUT" + echo "mainSelect=${{ env.idk }}" >> "$GITHUB_OUTPUT" + echo "monthSelect=${{ env.idk }}" >> "$GITHUB_OUTPUT" + echo "releaseSelect=${{ env.idk }}" >> "$GITHUB_OUTPUT" fi + # Add a PR comment with the publication timeline alert-pub-timeline: + name: Add publication comment runs-on: ubuntu-latest needs: set-timeline steps: - name: Add publication notice - if: ${{ github.base_ref }} ~= "vault/[0-9]\\.[0-9]{2}\\.x" uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Publication notice message: | ## 🕛 Publication timeline - Content changes publish based on the merge target [`${{ github.base_ref }}`] + Your content changes publish based on the merge target [`${{ github.base_ref }}`]. + If the timeline indicated below is inappropriate, please adjust the + merge target (base branch). Branch | Publication timeline | Selection ----------------- | --------------------- | --------- - `main` | Immediately | ${{ needs.set-timeline.outputs.main_select }} - `vault/YYYYMM` | End of the month | ${{ needs.set-timeline.outputs.month_select }} - `vault/` | Next major release | ${{ needs.set-timeline.outputs.release_select }} \ No newline at end of file + `main` | Immediately | ${{ needs.set-timeline.outputs.mainSelect }} + `vault/YYYYMM` | End of the month | ${{ needs.set-timeline.outputs.monthSelect }} + `vault/` | Next major release | ${{ needs.set-timeline.outputs.releaseSelect }} + + # Check if the PR includes important changes updates + check-important-changes: + name: Check for 'Important changes' updates + runs-on: ubuntu-latest + outputs: + icUpdate: ${{ steps.filter.outputs.tbd }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + icUpdate: + - 'content/vault/*/content/docs/updates/important-changes.mdx' + summaries: + - 'content/vault/global/partials/important-changes/summary-tables/**' + # run only if 'icChanges' files were changed and summaryChanges files were not + - name: ic test + if: steps.filter.outputs.icUpdate == 'true' && steps.filter.outputs.summaries == 'true' + run: echo "Workflow file" \ No newline at end of file From 5e3fce68e16a1c2018a3d6f3f9a2c907953605fe Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:21:54 -0700 Subject: [PATCH 78/99] s --- .github/workflows/vault-pr.yml | 9 +++++++-- .../v1.20.x/content/docs/updates/important-changes.mdx | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 325b1663a4..d544e8f081 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -88,9 +88,14 @@ jobs: filters: | icUpdate: - 'content/vault/*/content/docs/updates/important-changes.mdx' + icPartial: + - 'content/vault/global/partials/important-changes/breaking-changes/**' + - 'content/vault/global/partials/important-changes/new-behavior/**' + - 'content/vault/global/partials/important-changes/known-issue/**' + - 'content/vault/*/content/partials/know-issues/**' summaries: - 'content/vault/global/partials/important-changes/summary-tables/**' - # run only if 'icChanges' files were changed and summaryChanges files were not + # Only run if 'icChanges' files updated but summaryChanges did not - name: ic test - if: steps.filter.outputs.icUpdate == 'true' && steps.filter.outputs.summaries == 'true' + if: steps.filter.outputs.icUpdate == 'true' && steps.filter.outputs.summaries == 'false' run: echo "Workflow file" \ No newline at end of file diff --git a/content/vault/v1.20.x/content/docs/updates/important-changes.mdx b/content/vault/v1.20.x/content/docs/updates/important-changes.mdx index 54bd0547c7..e1f676dfc0 100644 --- a/content/vault/v1.20.x/content/docs/updates/important-changes.mdx +++ b/content/vault/v1.20.x/content/docs/updates/important-changes.mdx @@ -19,6 +19,7 @@ valid_change_types: >- Always review important or breaking changes and remediation recommendations before upgrading Vault. +I updated this file --- ## Breaking changes From c3b8a5d40d85f1abf379c0ce63508b557e6ddcdc Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:31:36 -0700 Subject: [PATCH 79/99] s --- .github/workflows/vault-pr.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index d544e8f081..610c351c54 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -79,7 +79,7 @@ jobs: name: Check for 'Important changes' updates runs-on: ubuntu-latest outputs: - icUpdate: ${{ steps.filter.outputs.tbd }} + addICComment: ${{ steps.check-ic.outputs.addICComment }} steps: - uses: actions/checkout@v4 - uses: dorny/paths-filter@v3 @@ -87,7 +87,7 @@ jobs: with: filters: | icUpdate: - - 'content/vault/*/content/docs/updates/important-changes.mdx' + - 'content/vault/*/content/docs/updates/**' icPartial: - 'content/vault/global/partials/important-changes/breaking-changes/**' - 'content/vault/global/partials/important-changes/new-behavior/**' @@ -96,6 +96,9 @@ jobs: summaries: - 'content/vault/global/partials/important-changes/summary-tables/**' # Only run if 'icChanges' files updated but summaryChanges did not - - name: ic test - if: steps.filter.outputs.icUpdate == 'true' && steps.filter.outputs.summaries == 'false' - run: echo "Workflow file" \ No newline at end of file + - name: Check for IC update + id: check-ic + if: (steps.filter.outputs.icUpdate == 'true') && (steps.filter.outputs.summaries == 'false') + run: | + echo "Workflow file" + echo "addICComment=${{ env.yes }}" >> "$GITHUB_OUTPUT" \ No newline at end of file From 81d9cb45630ed7ee33484787f056585a2e76ca6c Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:35:31 -0700 Subject: [PATCH 80/99] s --- .github/workflows/vault-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 610c351c54..78dfa535f8 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -87,7 +87,7 @@ jobs: with: filters: | icUpdate: - - 'content/vault/*/content/docs/updates/**' + - 'content/vault/*/content/docs/updates/important-changes.mdx' icPartial: - 'content/vault/global/partials/important-changes/breaking-changes/**' - 'content/vault/global/partials/important-changes/new-behavior/**' From 07143425bc8ad0efbb6b655037652156efa18473 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:41:16 -0700 Subject: [PATCH 81/99] t --- .github/workflows/vault-pr.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 78dfa535f8..6e2f9231f5 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -100,5 +100,22 @@ jobs: id: check-ic if: (steps.filter.outputs.icUpdate == 'true') && (steps.filter.outputs.summaries == 'false') run: | - echo "Workflow file" - echo "addICComment=${{ env.yes }}" >> "$GITHUB_OUTPUT" \ No newline at end of file + echo "addICComment=${{ env.yes }}" >> "$GITHUB_OUTPUT" + + # Add a PR comment with the publication timeline + alert-summary-table: + name: Add summary table comment + runs-on: ubuntu-latest + needs: check-important-changes + if: needs.check-important-changes.outputs.addICComment == 'true' + steps: + - name: Add summary table notice + uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 + with: + header: Summary table notice + message: | + > [!IMPORTANT] + > + > PRs that update the "Important changes" page **must** also have + > updates to the associated summary tables under: + > `content/vault/global/partials/important-changes/summary-tables/` \ No newline at end of file From a989c1835c31a66da5197826f4e7350b15dd6b95 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:42:43 -0700 Subject: [PATCH 82/99] s --- .github/workflows/vault-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 6e2f9231f5..04a407fc79 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -100,7 +100,7 @@ jobs: id: check-ic if: (steps.filter.outputs.icUpdate == 'true') && (steps.filter.outputs.summaries == 'false') run: | - echo "addICComment=${{ env.yes }}" >> "$GITHUB_OUTPUT" + echo "addICComment=true}}" >> "$GITHUB_OUTPUT" # Add a PR comment with the publication timeline alert-summary-table: From 8d519cc8423ee6e15091ea7b7475093af0c8fd4b Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:47:43 -0700 Subject: [PATCH 83/99] s --- .github/workflows/vault-pr.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 04a407fc79..1f30be1ad3 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -22,7 +22,7 @@ env: jobs: # Figure out the publication timeline based on the target branch - set-timeline: + set-pub-timeline: name: Set publication timeline runs-on: ubuntu-latest outputs: @@ -55,7 +55,7 @@ jobs: alert-pub-timeline: name: Add publication comment runs-on: ubuntu-latest - needs: set-timeline + needs: set-pub-timeline steps: - name: Add publication notice uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 @@ -70,9 +70,9 @@ jobs: Branch | Publication timeline | Selection ----------------- | --------------------- | --------- - `main` | Immediately | ${{ needs.set-timeline.outputs.mainSelect }} - `vault/YYYYMM` | End of the month | ${{ needs.set-timeline.outputs.monthSelect }} - `vault/` | Next major release | ${{ needs.set-timeline.outputs.releaseSelect }} + `main` | Immediately | ${{ needs.set-pub-timeline.outputs.mainSelect }} + `vault/YYYYMM` | End of the month | ${{ needs.set-pub-timeline.outputs.monthSelect }} + `vault/` | Next major release | ${{ needs.set-pub-timeline.outputs.releaseSelect }} # Check if the PR includes important changes updates check-important-changes: @@ -100,10 +100,10 @@ jobs: id: check-ic if: (steps.filter.outputs.icUpdate == 'true') && (steps.filter.outputs.summaries == 'false') run: | - echo "addICComment=true}}" >> "$GITHUB_OUTPUT" + echo "addICComment=true" >> "$GITHUB_OUTPUT" # Add a PR comment with the publication timeline - alert-summary-table: + alert-important-changes: name: Add summary table comment runs-on: ubuntu-latest needs: check-important-changes @@ -112,7 +112,9 @@ jobs: - name: Add summary table notice uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: - header: Summary table notice + header: Important change alert + hide: true + hide_classify: "OUTDATED" message: | > [!IMPORTANT] > From 882cac546832740cd8cd7e880b6fd118292ec989 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:57:53 -0700 Subject: [PATCH 84/99] s --- .github/workflows/vault-pr.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 1f30be1ad3..7b3121f64e 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -102,14 +102,14 @@ jobs: run: | echo "addICComment=true" >> "$GITHUB_OUTPUT" - # Add a PR comment with the publication timeline - alert-important-changes: - name: Add summary table comment + # Add a PR comment about missing summary table updates + alert-important-changes-add: + name: Add IC change alert runs-on: ubuntu-latest needs: check-important-changes if: needs.check-important-changes.outputs.addICComment == 'true' steps: - - name: Add summary table notice + - name: Add comment uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 with: header: Important change alert @@ -120,4 +120,17 @@ jobs: > > PRs that update the "Important changes" page **must** also have > updates to the associated summary tables under: - > `content/vault/global/partials/important-changes/summary-tables/` \ No newline at end of file + > `content/vault/global/partials/important-changes/summary-tables/` + # Hide the previous comment (if it exists) + alert-important-changes-remove: + name: Hide IC change alert + runs-on: ubuntu-latest + needs: check-important-changes + if: needs.check-important-changes.outputs.addICComment == 'false' + steps: + - name: Hide comment + uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 + with: + header: Important change alert + hide: true + hide_classify: "OUTDATED" \ No newline at end of file From 48456ef64074fa32a0b3222d243d60e6661d9c9d Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 18:29:25 -0700 Subject: [PATCH 85/99] s --- .github/workflows/vault-pr.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 7b3121f64e..a54e3f2b1f 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -79,7 +79,7 @@ jobs: name: Check for 'Important changes' updates runs-on: ubuntu-latest outputs: - addICComment: ${{ steps.check-ic.outputs.addICComment }} + icComment: ${{ steps.check-ic.outputs.icComment }} steps: - uses: actions/checkout@v4 - uses: dorny/paths-filter@v3 @@ -98,16 +98,23 @@ jobs: # Only run if 'icChanges' files updated but summaryChanges did not - name: Check for IC update id: check-ic - if: (steps.filter.outputs.icUpdate == 'true') && (steps.filter.outputs.summaries == 'false') run: | echo "addICComment=true" >> "$GITHUB_OUTPUT" + if [[ + "${{ steps.filter.outputs.icUpdate }}" == "true" && + "${{ steps.filter.outputs.summaries }}" == "false" + ]]; then + echo "icComment=add" >> "$GITHUB_OUTPUT" + else + echo "icComment=hide" >> "$GITHUB_OUTPUT" + fi # Add a PR comment about missing summary table updates alert-important-changes-add: name: Add IC change alert runs-on: ubuntu-latest needs: check-important-changes - if: needs.check-important-changes.outputs.addICComment == 'true' + if: needs.check-important-changes.outputs.addICComment == 'add' steps: - name: Add comment uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 @@ -126,7 +133,7 @@ jobs: name: Hide IC change alert runs-on: ubuntu-latest needs: check-important-changes - if: needs.check-important-changes.outputs.addICComment == 'false' + if: needs.check-important-changes.outputs.addICComment == 'hide' steps: - name: Hide comment uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 From 161d60b10b2b100387a016eedf6aa09d4c25abc0 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 18:40:44 -0700 Subject: [PATCH 86/99] s --- .github/workflows/vault-pr.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index a54e3f2b1f..4b46607dcc 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -99,7 +99,6 @@ jobs: - name: Check for IC update id: check-ic run: | - echo "addICComment=true" >> "$GITHUB_OUTPUT" if [[ "${{ steps.filter.outputs.icUpdate }}" == "true" && "${{ steps.filter.outputs.summaries }}" == "false" From 83322fedb0b5f99fee86adbbf894727480c5be53 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 18:44:54 -0700 Subject: [PATCH 87/99] s --- .github/workflows/vault-pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 4b46607dcc..0bdf3534bd 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -95,7 +95,6 @@ jobs: - 'content/vault/*/content/partials/know-issues/**' summaries: - 'content/vault/global/partials/important-changes/summary-tables/**' - # Only run if 'icChanges' files updated but summaryChanges did not - name: Check for IC update id: check-ic run: | @@ -113,7 +112,7 @@ jobs: name: Add IC change alert runs-on: ubuntu-latest needs: check-important-changes - if: needs.check-important-changes.outputs.addICComment == 'add' + if: needs.check-important-changes.outputs.icComment == 'add' steps: - name: Add comment uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 @@ -127,12 +126,13 @@ jobs: > PRs that update the "Important changes" page **must** also have > updates to the associated summary tables under: > `content/vault/global/partials/important-changes/summary-tables/` + # Hide the previous comment (if it exists) alert-important-changes-remove: name: Hide IC change alert runs-on: ubuntu-latest needs: check-important-changes - if: needs.check-important-changes.outputs.addICComment == 'hide' + if: needs.check-important-changes.outputs.icComment == 'hide' steps: - name: Hide comment uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1 From bb652a71c0a39f4b4154401a09788c8799f55942 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 18:46:43 -0700 Subject: [PATCH 88/99] s --- .github/workflows/vault-pr.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 0bdf3534bd..d2ccf0e156 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -123,8 +123,7 @@ jobs: message: | > [!IMPORTANT] > - > PRs that update the "Important changes" page **must** also have - > updates to the associated summary tables under: + > PRs that update the "Important changes" page **must** also have updates to the associated summary tables under: > `content/vault/global/partials/important-changes/summary-tables/` # Hide the previous comment (if it exists) From e46a60983dae43cd7bed3f1748bc8308de03683e Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 18:50:23 -0700 Subject: [PATCH 89/99] s --- .github/workflows/vault-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index d2ccf0e156..e8e4caccf7 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -123,7 +123,7 @@ jobs: message: | > [!IMPORTANT] > - > PRs that update the "Important changes" page **must** also have updates to the associated summary tables under: + > PRs that update the "Important changes" page **must** update to relevant summary tables under: > `content/vault/global/partials/important-changes/summary-tables/` # Hide the previous comment (if it exists) @@ -138,4 +138,4 @@ jobs: with: header: Important change alert hide: true - hide_classify: "OUTDATED" \ No newline at end of file + hide_classify: "RESOLVED" \ No newline at end of file From 0c694926eaa6190fd16073671019c64be9cb0352 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 18:51:10 -0700 Subject: [PATCH 90/99] s --- .github/workflows/vault-pr.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index e8e4caccf7..2c208f14b6 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -81,7 +81,6 @@ jobs: outputs: icComment: ${{ steps.check-ic.outputs.icComment }} steps: - - uses: actions/checkout@v4 - uses: dorny/paths-filter@v3 id: filter with: From 7bc3ae1837a93453e8d6d0c178fdf10491920274 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 18:54:18 -0700 Subject: [PATCH 91/99] s --- .github/workflows/vault-pr.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 2c208f14b6..61b93c9a3a 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -1,11 +1,12 @@ # Process Vault PRs: # -# (1) Add a comment that explains when the changes will publish -# (2) If the PR updates important changes, make sure the PR includes summary -# tables +# 1. Add a comment that explains when the changes will publish. +# 2. If the PR updates important changes, add a comment about updating the +# summary tables. + name: Process Vault PR -run-name: Process Vault PR +run-name: 🟡 Process Vault PR on: pull_request_target: From 742c8c80fbb4edd4e563ec2c84abd1fc07ed9382 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 19:03:01 -0700 Subject: [PATCH 92/99] e --- .github/workflows/create-release-pr.yml | 39 ++++++++++--------------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 593a2b5e6d..b82e04999d 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -1,5 +1,5 @@ -name: TESTING - Create release branch PR -run-name: 🚀 Creating ${{ github.event.inputs.product }} release PR +name: Create release branch PR +run-name: 🚀 Create release PR for ${{ github.event.inputs.branch }} permissions: contents: write @@ -7,22 +7,15 @@ permissions: on: workflow_dispatch: inputs: - product: + branchName: required: true - default: vault description: >- - Product slug (e.g., vault, hcp) - branch-name: - required: true - description: >- - Release branch name without product prefix. + Release branch name env: - RELEASE_BRANCH: "${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - MERGE_TARGET: "main" - LABELS: "${{ inputs.product }}-docs" - PR_TITLE: "[PUBLISH] ${{ github.event.inputs.product }}/${{ github.event.inputs.branch-name }}" - PR_BODY: "Publication PR created by Github action" + mergeTarget: "main" + prTitle: "[PUBLISH] ${{ github.event.inputs.branchName }}" + prBody: "Publication PR created by Github action" jobs: create-pr: @@ -31,21 +24,21 @@ jobs: - name: Debugging data run: | echo "🚧 ${{ github.repository }} - Creating PR" - echo " - Release branch: $RELEASE_BRANCH" - echo " - Merge target: $MERGE_TARGET" + echo " - Release branch: ${{ github.event.inputs.branchName }}" + echo " - Merge target: ${{ github.base_ref }}" - name: Check out repository code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Create pull request run: | - gh pr create \ - -B $MERGE_TARGET \ - -H $RELEASE_BRANCH \ - --label "$LABELS" \ - --title "$PR_TITLE" \ - --body "$PR_BODY" + gh pr create \ + --base ${{ github.env.mergeTarget }} \ + --head ${{ github.event.inputs.branchName }} \ + --title ${{ github.env.prTitle }} \ + --body ${{ github.env.prBody }} env: GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} - name: Wrap-up - run: echo "🍏 This job's status is ${{ job.status }}." + run: | + echo "🍏 Final job status: ${{ job.status }}" From f976cef1d381c9bb17909f419f15bc89db648ad3 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 19:05:18 -0700 Subject: [PATCH 93/99] save --- .github/workflows/create-release-pr.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index b82e04999d..9348e1ade9 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -1,5 +1,5 @@ name: Create release branch PR -run-name: 🚀 Create release PR for ${{ github.event.inputs.branch }} +run-name: đŸĨŒ Create release PR for ${{ github.event.inputs.branch }} permissions: contents: write @@ -16,6 +16,7 @@ env: mergeTarget: "main" prTitle: "[PUBLISH] ${{ github.event.inputs.branchName }}" prBody: "Publication PR created by Github action" + GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} jobs: create-pr: @@ -32,13 +33,11 @@ jobs: fetch-depth: 0 - name: Create pull request run: | - gh pr create \ - --base ${{ github.env.mergeTarget }} \ - --head ${{ github.event.inputs.branchName }} \ - --title ${{ github.env.prTitle }} \ - --body ${{ github.env.prBody }} - env: - GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} + gh pr create \ + --base ${{ env.mergeTarget }} \ + --head ${{ github.event.inputs.branchName }} \ + --title ${{ env.prTitle }} \ + --body ${{ env.prBody }} - name: Wrap-up run: | echo "🍏 Final job status: ${{ job.status }}" From 01658a2fd4581c04ec85685ca10cafe3c02dc6a7 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 19:06:36 -0700 Subject: [PATCH 94/99] s --- .github/workflows/create-release-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 9348e1ade9..662e2288cf 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -36,8 +36,8 @@ jobs: gh pr create \ --base ${{ env.mergeTarget }} \ --head ${{ github.event.inputs.branchName }} \ - --title ${{ env.prTitle }} \ - --body ${{ env.prBody }} + --title "${{ env.prTitle }}" \ + --body "${{ env.prBody }}" - name: Wrap-up run: | echo "🍏 Final job status: ${{ job.status }}" From 78566d64c064069d82b33cafce5d5c6d96c46348 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 19:08:27 -0700 Subject: [PATCH 95/99] s --- .github/workflows/create-release-pr.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 662e2288cf..a554f7c850 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -13,14 +13,15 @@ on: Release branch name env: - mergeTarget: "main" - prTitle: "[PUBLISH] ${{ github.event.inputs.branchName }}" - prBody: "Publication PR created by Github action" - GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} + mergeTarget: "main" + prTitle: "[PUBLISH] ${{ github.event.inputs.branchName }}" + prBody: "Publication PR created by Github action" jobs: create-pr: runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} steps: - name: Debugging data run: | From 6b82045d00a475c4c82ff2d31734b85b1cc8d69b Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 19:10:10 -0700 Subject: [PATCH 96/99] s --- .github/workflows/create-release-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index a554f7c850..f9dadbcfef 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -21,7 +21,7 @@ jobs: create-pr: runs-on: ubuntu-latest env: - GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Debugging data run: | From 229482180e1381902f9cdf1ce465669d68128a30 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 19:12:50 -0700 Subject: [PATCH 97/99] s --- .github/workflows/create-release-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index f9dadbcfef..e001d905f8 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -2,7 +2,7 @@ name: Create release branch PR run-name: đŸĨŒ Create release PR for ${{ github.event.inputs.branch }} permissions: - contents: write + pull-requests: write on: workflow_dispatch: From ad904504285aeb499b67bb4fbd10896599a2def7 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 19:17:59 -0700 Subject: [PATCH 98/99] s --- .github/workflows/pr-labeler.yml | 4 +++- .github/workflows/vault-pr.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index c2561da042..563d272a5a 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -5,7 +5,9 @@ name: đŸˇī¸ Label content PRs -on: [pull_request_target] +on: + pull_request: + types: [opened, synchronize, reopened] # Trigger on these events jobs: diff --git a/.github/workflows/vault-pr.yml b/.github/workflows/vault-pr.yml index 61b93c9a3a..e8cf08cd7d 100644 --- a/.github/workflows/vault-pr.yml +++ b/.github/workflows/vault-pr.yml @@ -10,6 +10,7 @@ run-name: 🟡 Process Vault PR on: pull_request_target: + types: [opened, synchronize, reopened] # Trigger on these events paths: - content/vault/** From e186603838f7aae3dc2959b948fb5d11b0fd3bb7 Mon Sep 17 00:00:00 2001 From: Sarah Chavis <62406755+schavis@users.noreply.github.com> Date: Tue, 9 Sep 2025 19:22:23 -0700 Subject: [PATCH 99/99] s --- .github/workflows/create-release-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index e001d905f8..062770b2d3 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -1,5 +1,5 @@ -name: Create release branch PR -run-name: đŸĨŒ Create release PR for ${{ github.event.inputs.branch }} +name: Create publication PR +run-name: đŸĨŒ Create publication PR permissions: pull-requests: write