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 9354f7ae5c4bc5b1dbfa38a9ee0a987940bcb4fb Mon Sep 17 00:00:00 2001 From: matthewelwell <14089968+matthewelwell@users.noreply.github.com> Date: Mon, 16 Mar 2026 07:46:51 +0000 Subject: [PATCH 8/8] Update API Flagsmith Defaults --- api/integrations/flagsmith/data/environment.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/integrations/flagsmith/data/environment.json b/api/integrations/flagsmith/data/environment.json index 94d278a6fcfa..15b6b7200536 100644 --- a/api/integrations/flagsmith/data/environment.json +++ b/api/integrations/flagsmith/data/environment.json @@ -80,16 +80,16 @@ "multivariate_feature_state_values": [] }, { - "django_id": 1204874, - "enabled": false, + "django_id": 1207975, + "enabled": true, "feature": { "id": 189491, "name": "compress_dynamo_documents", "type": "STANDARD" }, "feature_segment": null, - "feature_state_value": null, - "featurestate_uuid": "8cf41618-d392-4981-8f87-b60c5f3e8c79", + "feature_state_value": "", + "featurestate_uuid": "e0d380a6-bdbc-4ad6-ae6f-b8b77d8beae6", "multivariate_feature_state_values": [] } ],