mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
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:
parent
6a5d7f57e5
commit
0e79135419
1
.github/workflows/retest.yaml
vendored
1
.github/workflows/retest.yaml
vendored
@ -11,6 +11,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
retest:
|
retest:
|
||||||
|
if: github.repository == 'ceph/ceph-csi'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# path to the retest action
|
# path to the retest action
|
||||||
|
Loading…
Reference in New Issue
Block a user