Skip to content

feat(CI): execute for each directory #1

feat(CI): execute for each directory

feat(CI): execute for each directory #1

# This all is a workaround for the [lack of YAML anchors in Github Actions](https://github.com/actions/runner/issues/1182).
# Once those are added, this file can be merged with /reusable/schedule.yml
name: scheduled execute
permissions:
contents: read
on:
push:
branches: [main]
paths:
- operators/kube-rs-building-cronjob/**
- operators/poc-secondary-resource-management/**
pull_request:
paths:
- operators/kube-rs-building-cronjob/**
- operators/poc-secondary-resource-management/**
schedule:
- cron: "7 7 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
use-reusable:
uses: ./.github/workflows/reusable/scheduled.yml

Check failure on line 26 in .github/workflows/scheduled_config.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/scheduled_config.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
with:
directories: |
operators/kube-rs-building-cronjob/**
operators/poc-secondary-resource-management/**