mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
ce9d995115
Bumps [actions/github-script](https://github.com/actions/github-script) from 8 to 9. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v8...v9) --- updated-dependencies: - dependency-name: actions/github-script dependency-version: '9' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
# This enables periodical execution of CI jobs in branches we maintain.
|
|
#
|
|
# CI jobs are triggered through here (instead of adding "schedule:" to the
|
|
# appropriate files) because scheduled jobs are only run on the main branch.
|
|
# In other words, it's a way to run periodical CI for other branches.
|
|
|
|
name: scheduled
|
|
on:
|
|
schedule:
|
|
# Runs at 00:00 UTC every Sunday, Tuesday, Thursday.
|
|
- cron: '0 0 * * 0,2,4'
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
actions: write
|
|
|
|
jobs:
|
|
trigger-workflow:
|
|
strategy:
|
|
matrix:
|
|
branch: ["main", "release-1.3"]
|
|
wf_id: ["validate.yml", "test.yml"]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Trigger ${{ matrix.wf_id }} workflow on ${{ matrix.branch}} branch
|
|
uses: actions/github-script@v9
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
script: |
|
|
await github.rest.actions.createWorkflowDispatch({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
workflow_id: '${{ matrix.wf_id }}',
|
|
ref: '${{ matrix.branch }}'
|
|
});
|