-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename updateKv to be more descriptive * fix typo * draft a github workflow for the examples * document how to test the workflow * fix testing notes * fix copy paste error * better instructions * document the github workflow in the readme
- Loading branch information
Showing
5 changed files
with
77 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
examples/attribute-targeting/updateFlagDefinitionsInKv.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Internal note | ||
# To test this workflow: | ||
# 1. Copy it to .github/workflows | ||
# 2. Add a working-directory of examples/attribute-targeting to the Update FLag Definitions step | ||
# 3. Add URL_TO_KV and DENO_KV_ACCESS_TOKEN as environment secrets | ||
# 4. Remove the main branch restriction of on:push: | ||
# Then test by pushing changes to a test branch | ||
|
||
name: Update Flag Definitions in KV | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-24.04 | ||
environment: flagDefinitions | ||
steps: | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
|
||
- uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba # v1.1.4 | ||
with: | ||
deno-version: "1.43.5" | ||
|
||
- name: Update Flag Definitions | ||
env: | ||
URL_TO_KV: ${{ secrets.URL_TO_KV }} | ||
DENO_KV_ACCESS_TOKEN: ${{ secrets.DENO_KV_ACCESS_TOKEN }} | ||
run: | | ||
deno run --unstable-kv --allow-read=flags.json --allow-env=URL_TO_KV,DENO_KV_ACCESS_TOKEN --allow-net updateFlagDefinitionsInKv.ts |