Skip to content

grandmasterdev/github-action-aws-cdk-update

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

aws cdk update

Action to update aws cdk to the latest version automatically and creates a pull request.

Dependency

How to use it

Create a step in your job that will use the action as follows:

-  uses: actions/checkout

-  uses: grandmasterdev/github-action-aws-cdk-update@latest
        with:
          working-dir: ${{github.workspace}}
          github-user: 'action-committer'
          github-email: 'action-committer'
          github-token: ${{github.token}}
          github-remote: 'origin'

Getting the working directory

The working directory can be retrieve from various ways, but the easiest is by environment variables. You can get the value by adding the following action before this action in the steps.

name: Get working directory list
      run: |
        WD=$(pwd)
        echo "wd=${WD}" >> $GITHUB_ENV
      id: working-dir

Alternatively, you could use github action context to get the working directory via

${{github.workspace}}

With the above, you can then access the value of the working directory via the environment variable like the following:

- name: Get working directory list
      run: |
        WD=$(pwd)
        echo "wd=${WD}" >> $GITHUB_ENV
      id: working-dir

- uses: grandmasterdev/github-action-aws-cdk-update@latest
      with:
        working-dir: ${{env.wd}}

or if you are using context

- uses: grandmasterdev/github-action-aws-cdk-update@latest
      with:
        working-dir: ${{github.workspace}}

Inputs

Name Description Required?
working-dir The directory where the code is being checkout ✔️
github-user The user that will be use as committer. Default github-action-committer
github-email The user email that will be user as committer ✔️
github-remote The git remote name. Default origin
github-token The github access token to authenticate action operation ✔️

Outputs

Name Description Type
is_updated Inform if the version has been updated or not boolean

About

Github action to auto update aws-cdk modules

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors