Commit a2818d21b2
Unsigned
Layout: unified · split
.github/workflows/deploy.yml +3 −3
| @@ -1,8 +1,7 @@ | |||
| 1 | name: 🚀 Deploy API | 1 | name: 🚀 Deploy API |
| 2 | 2 | ||
| 3 | on: | 3 | on: |
| 4 | pull_request: | 4 | push: |
| 5 | types: [closed] | ||
| 6 | branches: [main] | 5 | branches: [main] |
| 7 | paths: | 6 | paths: |
| 8 | - 'api/**' | 7 | - 'api/**' |
| @@ -20,7 +19,7 @@ concurrency: | |||
| 20 | jobs: | 19 | jobs: |
| 21 | checks: | 20 | checks: |
| 22 | name: 🧪 Checks | 21 | name: 🧪 Checks |
| 23 | if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true | 22 | if: github.repository == 'lissy93/awesome-privacy' |
| 24 | runs-on: ubuntu-latest | 23 | runs-on: ubuntu-latest |
| 25 | defaults: | 24 | defaults: |
| 26 | run: | 25 | run: |
| @@ -40,6 +39,7 @@ jobs: | |||
| 40 | deploy: | 39 | deploy: |
| 41 | name: ☁️ Deploy to Cloudflare | 40 | name: ☁️ Deploy to Cloudflare |
| 42 | needs: checks | 41 | needs: checks |
| 42 | if: github.repository == 'lissy93/awesome-privacy' | ||
| 43 | runs-on: ubuntu-latest | 43 | runs-on: ubuntu-latest |
| 44 | defaults: | 44 | defaults: |
| 45 | run: | 45 | run: |