-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: npmrc update & add ec2-types sync schedule (#24)
* ci: add default npmrc and remove npmrc generation * chore: rename util to scripts * ci: add ec2-types sync schedule * ci: revert changes related with npmrc * ci: remove git status checks & add aws secrets * ci(scripts): exit(1) on credential failure * ci: reorder steps and update snapshot * ci: update exclude patterns
- Loading branch information
Showing
7 changed files
with
74 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: keep ec2 types up to date | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Generate ec2-types | ||
run: yarn build:ec2-types | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Check linting | ||
run: yarn lint | ||
|
||
- name: Check types | ||
run: yarn lint:types | ||
|
||
- name: Run tests and update snapshots | ||
run: yarn test -u | ||
|
||
- name: Log git diffs | ||
run: git diff | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
COMMIT_MESSAGE: "fix: update ec2-types" | ||
PULL_REQUEST_TITLE: "fix: update ec2-types" | ||
PULL_REQUEST_BRANCH: ec2-types/patch | ||
BRANCH_SUFFIX: none |
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
File renamed without changes.
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