ceph-csi/.github/workflows/retest.yaml
Niels de Vos 0e79135419 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>
2023-06-05 08:56:40 +00:00

24 lines
554 B
YAML

---
name: "Retest approved pull Requests"
# yamllint disable-line rule:truthy
on:
schedule:
# Run the retest action every 30 minutes
- cron: "30 * * * *"
permissions:
contents: read
jobs:
retest:
if: github.repository == 'ceph/ceph-csi'
runs-on: ubuntu-latest
steps:
# path to the retest action
- uses: ceph/ceph-csi/actions/retest@devel
with:
GITHUB_TOKEN: ${{ secrets.CEPH_CSI_BOT_TOKEN }}
required-label: "ci/retry/e2e"
max-retry: "5"
required-approve-count: "2"