diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 298227e..b0dcf94 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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" @@ -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" diff --git a/.github/workflows/prs-closed.yaml b/.github/workflows/prs-closed.yaml index 87baa4d..ced7e0e 100644 --- a/.github/workflows/prs-closed.yaml +++ b/.github/workflows/prs-closed.yaml @@ -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 }}