Skip to content

Commit

Permalink
feat: require branch to not be from a fork pr
Browse files Browse the repository at this point in the history
  • Loading branch information
maalni committed Mar 23, 2024
1 parent aa6367f commit 5db95dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/delete-redundant-deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
delete:
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == 'dval-in/dval-in' }}
permissions:
contents: read
deployments: write
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to-cloudflare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
name: 'Deploy to Cloudflare'
on:
workflow_run:
workflows: [Check code quality]
workflows: [ Check code quality ]
types:
- completed

jobs:
on-success:
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == 'dval-in/dval-in' }}
permissions:
contents: read
deployments: write
Expand Down

0 comments on commit 5db95dd

Please sign in to comment.