Branch deleted #114
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: Branch deleted | |
on: delete | |
permissions: | |
contents: read | |
jobs: | |
delete_branch_binaries: | |
permissions: | |
contents: none | |
if: github.event.ref_type == 'branch' | |
name: Delete Branch Binaries | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install python3 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.x' | |
architecture: 'x64' | |
- name: Install Tools | |
run: | | |
pip install awscli | |
- name: Extract Information | |
id: info | |
uses: botpress/gh-actions/extract_info@v1 | |
with: | |
branch: ${{ github.event.ref }} | |
- name: Delete Binaries | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: | | |
aws s3 rm --recursive s3://botpress-dev-bins/botpress/${{ steps.info.outputs.branch_sanitized }} |