1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

Fix gha smells:

- Stop running workflows when there is a newer commit in PR
- Prevent running issue/PR actions on forks line
- Avoid deploying jobs on forks
This commit is contained in:
Cedric Willekens 2024-05-05 20:51:45 +02:00
parent b2c57e2d8b
commit 3791a6100f
4 changed files with 8 additions and 2 deletions

View file

@ -8,6 +8,10 @@ on:
merge_group:
branches: [main, 1.*.x]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
# Require writing security events to upload SARIF file to security tab
security-events: write

View file

@ -8,6 +8,8 @@ on:
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Check out code
uses: actions/checkout@v3

View file

@ -8,7 +8,7 @@ jobs:
tests:
name: Release
runs-on: ubuntu-latest
if: github.repository == 'appwrite-appwrite'
steps:
- name: Checkout repository
uses: actions/checkout@v3

View file

@ -7,7 +7,7 @@ on:
jobs:
stale:
runs-on: ubuntu-latest
if: github.repository == 'appwrite/appwrite'
steps:
- uses: actions/stale@v9
with: