Skip to content

Commit

Permalink
Attempt at fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ptoffy committed Jun 23, 2024
1 parent 40f86ad commit 459898d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches:
Expand All @@ -18,13 +18,13 @@ jobs:
with:
aws-access-key-id: ${{ secrets.SITE_DEPLOYER_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.SITE_DEPLOYER_ACCESS_KEY_SECRET }}
aws-region: 'us-east-1'
aws-region: us-east-1
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"
- name: Setup CloudFormation linter
uses: ScottBrenner/cfn-lint-action@v2
- name: Run CloudFormation linter
Expand All @@ -36,15 +36,15 @@ jobs:
env:
BUCKET: ${{ format('vapor-website-pulls-pr{0}', github.event.number) }}
run: |
if aws s3api head-bucket --bucket ${BUCKET} 2>/dev/null; then
echo "Bucket already exists"
else
aws s3 mb s3://${BUCKET}
aws s3api delete-public-access-block --bucket ${BUCKET}
aws s3api delete-bucket-ownership-controls --bucket ${BUCKET}
aws s3api put-bucket-website --bucket ${BUCKET} \
--website-configuration '{"IndexDocument":{"Suffix":"index.html"},"ErrorDocument":{"Key":"404.html"}}'
fi
if aws s3api head-bucket --bucket ${BUCKET} 2>/dev/null; then
echo "Bucket already exists"
else
aws s3 mb s3://${BUCKET}
aws s3api delete-public-access-block --bucket ${BUCKET}
aws s3api delete-bucket-ownership-controls --bucket ${BUCKET}
aws s3api put-bucket-website --bucket ${BUCKET} \
--website-configuration '{"IndexDocument":{"Suffix":"index.html"},"ErrorDocument":{"Key":"404.html"}}'
fi
- name: Deploy S3 Website
if: ${{ github.event.pull_request.head.repo.full_name == 'vapor/website' && github.actor != 'dependabot[bot]' }}
uses: brokenhandsio/[email protected]
Expand Down

0 comments on commit 459898d

Please sign in to comment.