Skip to content

Commit

Permalink
Cache feature flags on disk
Browse files Browse the repository at this point in the history
This will allow feature flags to be shared across steps in the same job,
avoiding an error we saw earlier where the init action had the flag
enabled, but the analyze step had it disabled.

This uses the runner's temp folder to cache the flags file, which will
stick around until the job completes.
  • Loading branch information
Andrew Eisenberg committed Nov 21, 2022
1 parent 4fddc51 commit c29fca4
Show file tree
Hide file tree
Showing 12 changed files with 255 additions and 49 deletions.
2 changes: 1 addition & 1 deletion lib/analyze-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/analyze-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 51 additions & 9 deletions lib/feature-flags.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c29fca4

Please sign in to comment.