From b4a14f8e383c13404d7d87fb0e15a2289b8939fa Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 16 Mar 2026 07:45:24 +0100 Subject: [PATCH 1/8] Use custom token instead of default --- .github/workflows/update-flagsmith-environment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-flagsmith-environment.yml b/.github/workflows/update-flagsmith-environment.yml index 8ce8ea7929c5..0a37c8fa0723 100644 --- a/.github/workflows/update-flagsmith-environment.yml +++ b/.github/workflows/update-flagsmith-environment.yml @@ -40,3 +40,4 @@ jobs: delete-branch: true title: 'chore: update Flagsmith environment document' labels: api + token: '${{ secrets.GITHUB_TOKEN }}' From 2aff3e3b62425680b44a91f82c17a71705c1af62 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 16 Mar 2026 07:45:46 +0100 Subject: [PATCH 2/8] temp: Run workflow on push --- .github/workflows/update-flagsmith-environment.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/update-flagsmith-environment.yml b/.github/workflows/update-flagsmith-environment.yml index 0a37c8fa0723..aaefa012c5ba 100644 --- a/.github/workflows/update-flagsmith-environment.yml +++ b/.github/workflows/update-flagsmith-environment.yml @@ -4,6 +4,9 @@ on: schedule: - cron: 0 8 * * * workflow_dispatch: + push: + branches: + - ci/run-workflows-on-update-flagsmith-environment defaults: run: From 0f3ef1c022ab92576c621bea2ad6b634090dc4b3 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 16 Mar 2026 07:49:15 +0100 Subject: [PATCH 3/8] bonus update PR title to match naming conventions --- .github/workflows/update-flagsmith-environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-flagsmith-environment.yml b/.github/workflows/update-flagsmith-environment.yml index aaefa012c5ba..40a826e507d3 100644 --- a/.github/workflows/update-flagsmith-environment.yml +++ b/.github/workflows/update-flagsmith-environment.yml @@ -41,6 +41,6 @@ jobs: commit-message: Update API Flagsmith Defaults branch: chore/update-api-flagsmith-environment delete-branch: true - title: 'chore: update Flagsmith environment document' + title: 'chore: Update Flagsmith environment document' labels: api token: '${{ secrets.GITHUB_TOKEN }}' From 8bd0be50d7c1036e1a1bbb8f7184abe9c5fe2936 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 16 Mar 2026 07:50:28 +0100 Subject: [PATCH 4/8] bonus update to latest version --- .github/workflows/update-flagsmith-environment.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/update-flagsmith-environment.yml b/.github/workflows/update-flagsmith-environment.yml index 40a826e507d3..1aaae97c889c 100644 --- a/.github/workflows/update-flagsmith-environment.yml +++ b/.github/workflows/update-flagsmith-environment.yml @@ -36,10 +36,9 @@ jobs: run: poetry run python manage.py updateflagsmithenvironment - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v8 with: commit-message: Update API Flagsmith Defaults - branch: chore/update-api-flagsmith-environment delete-branch: true title: 'chore: Update Flagsmith environment document' labels: api From c9776edc5364df8595c666be4773abbdaac1a261 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 16 Mar 2026 08:01:09 +0100 Subject: [PATCH 5/8] Change secret reference --- .github/workflows/update-flagsmith-environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-flagsmith-environment.yml b/.github/workflows/update-flagsmith-environment.yml index 1aaae97c889c..c7b62bf99808 100644 --- a/.github/workflows/update-flagsmith-environment.yml +++ b/.github/workflows/update-flagsmith-environment.yml @@ -42,4 +42,4 @@ jobs: delete-branch: true title: 'chore: Update Flagsmith environment document' labels: api - token: '${{ secrets.GITHUB_TOKEN }}' + token: '${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}' From e7d96076db1a3b9643a21f8f698f8e01f02a0b29 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 16 Mar 2026 08:37:26 +0100 Subject: [PATCH 6/8] Change secret reference --- .github/workflows/update-flagsmith-environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-flagsmith-environment.yml b/.github/workflows/update-flagsmith-environment.yml index c7b62bf99808..09f852b74461 100644 --- a/.github/workflows/update-flagsmith-environment.yml +++ b/.github/workflows/update-flagsmith-environment.yml @@ -42,4 +42,4 @@ jobs: delete-branch: true title: 'chore: Update Flagsmith environment document' labels: api - token: '${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}' + token: '${{ secrets.FLAGSMITH_BOT_GITHUB_TOKEN }}' From 031e9f4b17d4b316f84a8445918b15dff22e96c7 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 16 Mar 2026 08:45:19 +0100 Subject: [PATCH 7/8] Update secret reference --- .github/workflows/update-flagsmith-environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-flagsmith-environment.yml b/.github/workflows/update-flagsmith-environment.yml index 09f852b74461..67fb407a5362 100644 --- a/.github/workflows/update-flagsmith-environment.yml +++ b/.github/workflows/update-flagsmith-environment.yml @@ -42,4 +42,4 @@ jobs: delete-branch: true title: 'chore: Update Flagsmith environment document' labels: api - token: '${{ secrets.FLAGSMITH_BOT_GITHUB_TOKEN }}' + token: ${{ secrets.UPDATE_ENVIRONMENT_DOCUMENT_WORKFLOW_GH_PAT }} From b9ebe41284a7fc6539e0b99c310acecf066f2b7d Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Wed, 18 Mar 2026 11:28:50 +0000 Subject: [PATCH 8/8] Remove temporary branch trigger --- .github/workflows/update-flagsmith-environment.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/update-flagsmith-environment.yml b/.github/workflows/update-flagsmith-environment.yml index 67fb407a5362..2822710adb9c 100644 --- a/.github/workflows/update-flagsmith-environment.yml +++ b/.github/workflows/update-flagsmith-environment.yml @@ -4,9 +4,6 @@ on: schedule: - cron: 0 8 * * * workflow_dispatch: - push: - branches: - - ci/run-workflows-on-update-flagsmith-environment defaults: run: