Skip to content

Fixed spacing

Fixed spacing #108

Workflow file for this run

name: PR - Closed
on:
pull_request:
types: [closed]
jobs:
dev-pr-close-s3:
runs-on: ubuntu-latest
environment: dev
steps:
- name: Empty Website Bucket
run: |
if aws s3api head-bucket --bucket pr-preview-bioconductor-pr${{github.event.number}} 2>/dev/null; then
aws s3 rm s3://pr-preview-bioconductor-pr${{github.event.number}} --recursive
echo "BUCKET_EXISTS=true" >> "$GITHUB_ENV"
else
echo "Bucket does not exist"
echo "BUCKET_EXISTS=false" >> "$GITHUB_ENV"
fi
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1"
- name: Delete Website Bucket
if: ${{env.BUCKET_EXISTS == 'true'}}
uses: danburtenshaw/[email protected]
with:
bucket-prefix: "pr-preview-bioconductor"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}