ci: prevent Retest Workflow from running on forked repos

Forked repositories contain the the `.github/workflows/` directory, and
therefore run all the GitHub Workflows located there. Some of the
workflows need additional configuration, like providing access to the
standard `GITHUB_TOKEN`. If the extra configuration is not done, the
GitHub Workflow will fail, and the owner of the forked repository will
receive regular notifications about that.

There is no need to run the "retest" workflow on forked repositories, so
it can be skipped by default.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2023-06-05 09:30:41 +02:00 committed by mergify[bot]
parent 6a5d7f57e5
commit 0e79135419

View File

@ -11,6 +11,7 @@ permissions:
jobs:
retest:
if: github.repository == 'ceph/ceph-csi'
runs-on: ubuntu-latest
steps:
# path to the retest action