github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/bitbucket/testdata/steps/example13.yaml (about)

     1  # Example using the condition option to only run a stage when certain files change
     2  
     3  pipelines:
     4    default:
     5      - stage:
     6          name: Build and test
     7          condition:
     8            changesets:
     9              includePaths:
    10                # only xml files directly under path1 directory
    11                - "path1/*.xml"
    12                # any changes in deeply nested directories under path2
    13                - "path2/**"
    14          steps:
    15            - step:
    16                name: Build app
    17                script:
    18                  - sh ./build-app.sh
    19            - step:
    20                name: Run unit tests
    21                script:
    22                  - sh ./run-tests.sh