ceph-csi/.github/workflows/test-retest-action.yaml
Niels de Vos c84b4a15ba ci: only run test-retest-action if the PR modifies the action
There is no need to run the `test-retest-action` GitHub Workflow if
there are no changes under the `actions/retest` directory.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2023-02-21 10:58:52 +00:00

24 lines
522 B
YAML

---
name: test-retest-action
# yamllint disable-line rule:truthy
on:
pull_request:
branches: [devel]
paths:
- 'actions/retest/**'
- '.github/workflows/test-retest-action.yaml'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker build
# Run cd to avoid loading complete cephcsi directory in docker context
# while building retest image.
run: cd actions/retest && docker build -t retest .