From 1dab04c9cd52a0bb662dc79316f40aba7ae5e396 Mon Sep 17 00:00:00 2001 From: Brandt Kurowski Date: Tue, 5 Aug 2025 15:26:14 -0400 Subject: [PATCH 1/5] compile docs --- .github/workflows/build_and_deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 96fb606..4118dce 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -53,6 +53,8 @@ jobs: run: composer -n ci-compile-theme - name: Build React app(s) for deployment run: composer -n ci-compile-react + - name: Build docs for deployment + run: composer -n ci-compile-docs - name: Remove files that should not be deployed run: | sed -n '/# *:.*cut.*:/,$p' .gitignore > ../deploy.gitignore From 8700cbb61cf8c8038f254d6bcc24e639d12b7ded Mon Sep 17 00:00:00 2001 From: Brandt Kurowski Date: Mon, 15 Sep 2025 16:34:03 -0400 Subject: [PATCH 2/5] let the action comment on PR --- .github/workflows/build_and_deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 7764d55..7897426 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -27,6 +27,8 @@ on: required: true concurrency: group: ${{ github.workflow }}-${{ github.ref }} +permissions: + pull-requests: write defaults: run: shell: bash From 372ebc0736745b81e87c79b9e62e9d7f0888332b Mon Sep 17 00:00:00 2001 From: Brandt Kurowski Date: Mon, 15 Sep 2025 16:46:18 -0400 Subject: [PATCH 3/5] add back default perm --- .github/workflows/build_and_deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 7897426..09998be 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -28,6 +28,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.ref }} permissions: + contents: read pull-requests: write defaults: run: From 3ea7f4032c4f9ebea8e27f523e4d3bbb7901ff9b Mon Sep 17 00:00:00 2001 From: Brandt Kurowski Date: Tue, 16 Sep 2025 08:20:01 -0400 Subject: [PATCH 4/5] fix token --- .github/workflows/build_and_deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 09998be..b120912 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -29,7 +29,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} permissions: contents: read - pull-requests: write defaults: run: shell: bash @@ -237,8 +236,8 @@ jobs: set -e if [ $PANTHEON_SITE_EXISTS -eq 0 ]; then terminus multidev:create $TERMINUS_SITE.dev $TERMINUS_ENV - curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ + curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github+json" \ --request POST \ --data '{"body": "Created feature testing environment at https://'$TERMINUS_ENV'-'$TERMINUS_SITE'.pantheonsite.io/"}' \ "https://api.github.com/repos/${GITHUB_REPOSITORY}/issues/$PR_NUMBER/comments" From c224dd18ca042a542a1d1687eecc4e1e1a45f61c Mon Sep 17 00:00:00 2001 From: Brandt Kurowski Date: Tue, 16 Sep 2025 11:03:32 -0400 Subject: [PATCH 5/5] fix perms --- .github/workflows/build_and_deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index b120912..b4ff144 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -29,6 +29,7 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} permissions: contents: read + pull-requests: write defaults: run: shell: bash