Skip to content

Commit

Permalink
Don't run AWS stuff for Dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Feb 22, 2024
1 parent f629687 commit 3bf24a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- name: Build site
run: swift run
- name: Create Bucket with correct permissions
if: ${{ github.event.pull_request.head.repo.full_name == 'vapor/blog' && github.actor != 'dependabot[bot]' }}
run: |
if aws s3api head-bucket --bucket vapor-blog-pull-pr${{github.event.number}} 2>/dev/null; then
echo "Bucket already exists"
Expand All @@ -36,7 +37,7 @@ jobs:
fi
- name: Deploy S3 Website
uses: rishabhrao/s3-website-https-pr-action@v1
if: ${{ github.event.pull_request.head.repo.full_name == 'vapor/blog' }}
if: ${{ github.event.pull_request.head.repo.full_name == 'vapor/blog' && github.actor != 'dependabot[bot]' }}
with:
bucket-prefix: "vapor-blog-pull"
folder-to-copy: "./Output"
2 changes: 1 addition & 1 deletion .github/workflows/prs-closed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
delete-s3:
name: Delete S3 Website
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.full_name == 'vapor/blog' }}
if: ${{ github.event.pull_request.head.repo.full_name == 'vapor/blog' && github.actor != 'dependabot[bot]' }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.BLOG_DEPLOYER_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.BLOG_DEPLOYER_AWS_SECRET_ACCESS_KEY }}
Expand Down

0 comments on commit 3bf24a7

Please sign in to comment.