Skip to content

Commit

Permalink
Merge pull request #3 from gscho/add-c7n-org-support
Browse files Browse the repository at this point in the history
Add support for c7n-org extension
  • Loading branch information
Greg Schofield committed Jan 14, 2022
2 parents f113271 + b029ef5 commit f0b96ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/custodian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
with:
include-azure: true
include-gcp: true
include-c7n-org: true
- name: Run
run: |
custodian schema
Expand Down
11 changes: 9 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
include-gcp:
description: "Installs the c7n_gcp extension if set to true"
default: false
include-c7n-org:
description: "Installs the c7n-org extension if set to true"
default: false

runs:
using: "composite"
steps:
Expand All @@ -26,10 +30,13 @@ runs:
fi
pip install -Iv c7n"${VERSION_ARG}"
if [ "${{ inputs.include-azure }}" == true ]; then
pip install -Iv c7n_azure"${VERSION_ARG}"
pip install c7n_azure
fi
if [ "${{ inputs.include-gcp }}" == true ]; then
pip install -Iv c7n_gcp"${VERSION_ARG}"
pip install c7n_gcp
fi
if [ "${{ inputs.include-c7n-org }}" == true ]; then
pip install c7n-org
fi
dir=$(pwd)
cat << EOF > /usr/local/bin/custodian
Expand Down

0 comments on commit f0b96ab

Please sign in to comment.