-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: check new commits before re-generate models (GHORG-38)
* feat: check new commits before re-generate models * fix: use workflow's github token to authorize github api * style: rename hasNewCommitsSinceYesterday to hasNewCommits * refactor: require dotenv before generate models * chore: add GITHUB_TOKEN into env example * refactor: add hour frequency as an environment variable * fix: just set hours number as parameters * fix: change to look back hour
- Loading branch information
1 parent
78d007e
commit 03c4ecb
Showing
3 changed files
with
48 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
## get from AWS | ||
# get from AWS | ||
AWS_ACCESS_KEY_ID=AKIA... | ||
AWS_SECRET_ACCESS_KEY=... | ||
## need to be created | ||
# need to be created | ||
ROLE_ARN= | ||
|
||
## get from Seller Central / Developer Central account | ||
# get from Seller Central / Developer Central account | ||
CLIENT_ID= | ||
CLIENT_SECRET= | ||
## self authorize | ||
# self authorize | ||
REFRESH_TOKEN= | ||
|
||
## set to your preference | ||
# set to your preference | ||
API_REGION=eu-west-1 | ||
|
||
# authorize github api when check api model commits | ||
GITHUB_TOKEN= | ||
|
||
# api model's generation lookback. | ||
# Default: 1 | ||
# LOOKBACK_HOURS= |
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