Skip to content

adding ci files

adding ci files #1

Workflow file for this run

# SPDX-License-Identifier: GPL-2.0

Check failure on line 1 in .github/workflows/schedule.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/schedule.yml

Invalid workflow file

(Line: 42, Col: 5): Unexpected value 'secrets', (Line: 43, Col: 5): Unexpected value 'uses', (Line: 47, Col: 5): Unexpected value 'with'
---
name: Run kdevops CI Workflow - Schedule
on:
schedule:
- cron: '0 14 * * *'
workflow_dispatch:
jobs:
check_ref:
name: Check Linux kernel Git Reference
outputs:
kernel_ref: ${{ steps.check_kernel_ref.outputs.kernel_ref }}
kernel_tree: ${{ steps.check_kernel_ref.outputs.kernel_tree }}
runs-on: [self-hosted]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Generate kernel_ref
id: check_kernel_ref
run: |
set -euxo pipefail
day_of_week=$(date +%u)
kernel_ref=$(./scripts/korg-releases.py --moniker linux-next)
kernel_tree=linux-next
if [ "$day_of_week" -eq 1 ]; then
kernel_ref=$(./scripts/korg-releases.py --moniker mainline)
kernel_tree=linux
fi
"${{ github.workspace }}/scripts/github_output.sh" kernel_ref "$kernel_ref"
"${{ github.workspace }}/scripts/github_output.sh" kernel_tree "$kernel_tree"
schedule:
name: Scheduled kdevops CI
needs: [check_ref]
runs-on: [self-hosted]
secrets: inherit
uses: ./.github/workflows/main.yml
strategy:
matrix:
ci_workflow: [blktests-block, blktests-loop, blktests-meta]
with:
ci_workflow: ${{ matrix.ci_workflow }}
kernel_ref: ${{ needs.check_ref.outputs.kernel_ref }}
kernel_tree: ${{ needs.check_ref.outputs.kernel_tree }}