Skip to content

Commit 92fa5f6

Browse files
author
Joe Snell
committed
initila
0 parents  commit 92fa5f6

File tree

605 files changed

+155887
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

605 files changed

+155887
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Github Action for bump-cdk
2+
3+
This is a [GitHub Action] that creates a pull request with a version upgrade on CDK dependencies.
4+
5+
Because of the way CDK is compiled, all peer dependencies must be the same version. This causes a maintenance headache of not only bumping the versions, but also making sure they go together.
6+
7+
## Usage
8+
9+
Here is an example where we use the action on a daily schedule.
10+
11+
```yml
12+
on:
13+
schedule:
14+
- cron: '0 12 * * *'
15+
16+
jobs:
17+
bump_cdk:
18+
runs-on: ubuntu-latest
19+
name: Bump CDK versions
20+
steps:
21+
- id: bump
22+
uses: '@cdk-tools/bump-cdk-action@v1'
23+
```
24+
25+
## Options
26+
27+
Explicit Version
28+
29+
Strategy
30+
31+
Pattern

action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Bump CDK'
2+
description: ''
3+
inputs:
4+
working-directory:
5+
description: 'Sets the working directory'
6+
required: false
7+
version:
8+
description: 'Explicit version to set cdk dependencies to'
9+
required: false
10+
debug:
11+
description: 'Sets debug mode'
12+
required: false
13+
outputs:
14+
version:
15+
description: 'The version of CDK that the project has been set to'
16+
runs:
17+
using: 'node12'
18+
main: 'dist/index.js'

dist/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const core = require('@actions/core');
2+
const github = require('@actions/github');
3+
const { bumpCdk } = require('bump-cdk');
4+
5+
async function run() {
6+
try {
7+
const workingDirectory = core.getInput('working-directory') || process.cwd();
8+
const explicitVersion = core.getInput('version') || undefined;
9+
const debug = core.getInput('debug') || false;
10+
const version = explicitVersion;
11+
12+
await bumpCdk(workingDirectory, version, false, debug);
13+
14+
core.setOutput('version', version);
15+
} catch (error) {
16+
core.setFailed(error.message);
17+
}
18+
}
19+
20+
run();

node_modules/.bin/bump-cdk

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/ncc

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/rimraf

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/semver

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/which

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@actions/core/README.md

Lines changed: 146 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)