diff options
author | William Desportes <williamdes@wdes.fr> | 2021-07-12 01:11:50 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2021-07-12 01:15:47 +0300 |
commit | 8021847847714a6546b6af20579b82ab98da59e5 (patch) | |
tree | b1260f009e179a347496b6cebc8823487ae02f9f /.github | |
parent | f6c8d6b8700892500f0bb9436ad2d3416f35cbf8 (diff) |
Only run crons on the main repository, not on forks
Ref: 09a6f4e5e6db2b54cd5d403d09956835157aa726
Ref: #16955
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/update-po.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/update-po.yml b/.github/workflows/update-po.yml index bae7593af2..4250f863c6 100644 --- a/.github/workflows/update-po.yml +++ b/.github/workflows/update-po.yml @@ -8,6 +8,8 @@ on: jobs: update-po: runs-on: ubuntu-latest + # Source: https://github.community/t/do-not-run-cron-workflows-in-forks/17636/2?u=williamdes + if: (github.event_name == 'schedule' && github.repository == 'phpmyadmin/phpmyadmin') || (github.event_name != 'schedule') strategy: matrix: |