diff --git a/README.md b/README.md index 244c0d3..b353d4d 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,16 @@ Sometimes, existing credentials in your runner can get in the way of the intended outcome. You can set the `unset-current-credentials` input to `true` to work around this issue. +#### Skip the cleanup step +By default, this action runs a post-job cleanup step that removes credentials +from the environment. To skip this step, set the `AWS_SKIP_CLEANUP_STEP` +environment variable to `true`: + +```yaml + env: + AWS_SKIP_CLEANUP_STEP: 'true' +``` + #### Use an HTTP proxy If need use an HTTP proxy you can set it in the action manually. Additionally diff --git a/action.yml b/action.yml index c781b4a..cdba191 100644 --- a/action.yml +++ b/action.yml @@ -5,6 +5,7 @@ runs: using: node24 main: dist/index.js post: dist/cleanup/index.js + post-if: env.AWS_SKIP_CLEANUP_STEP != 'true' branding: color: orange icon: cloud