Skip to content

Commit

Permalink
Fix index with correct filekeys
Browse files Browse the repository at this point in the history
  • Loading branch information
aweell committed Sep 25, 2024
1 parent 64ff354 commit f627785
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions tokens/figma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This project is designed to update Figma variables based on a JSON input, primar

- `FIGMA_TOKEN`: The API token to authenticate with Figma.
- `MIDDLEWARE_KEY`: Token for file where the variables need to be created / updated
- `{BRAND}_FILE_KEY`: File key of each of the brand library files

### Dependencies:

Expand Down
13 changes: 10 additions & 3 deletions tokens/figma/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,19 @@ const jsonDataForMiddleware =
);

const MIDDLEWARE_TOKEN =
process.env.MIDDLEWARE_TEST;
process.env.MIDDLEWARE_KEY;

const brands = {
// Remember to sync these with the workflow file
[BRANDS.MOVISTAR]: process.env.FILE_KEY_1,
[BRANDS.O2_NEW]: process.env.FILE_KEY_2,
[BRANDS.MOVISTAR]:
process.env.MOVISTAR_FILE_KEY,
[BRANDS.O2_NEW]: process.env.O2_NEW_FILE_KEY,
[BRANDS.VIVO_NEW]:
process.env.VIVO_NEW_FILE_KEY,
[BRANDS.TELEFONICA]:
process.env.TELEFONICA_FILE_KEY,
[BRANDS.BLAU]: process.env.BLAU_FILE_KEY,
[BRANDS.TU]: process.env.TU_FILE_KEY,
};

const brandNames = Object.keys(brands);
Expand Down

0 comments on commit f627785

Please sign in to comment.