Generate Zip File #16
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
name: Generate Zip File | |
on: | |
workflow_run: | |
workflows: [OPA Tests] | |
types: | |
- completed | |
jobs: | |
generate-zip-file: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3 | |
- name: Install and run cfn cli | |
run: | | |
cd hooks | |
pip install --quiet cloudformation-cli cloudformation-cli-python-plugin | |
cfn submit --dry-run | |
- name: Upload zip file as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: hook-package-zip | |
path: hooks/styra-opa-hook.zip |