Skip to content

Commit

Permalink
run cron jobs when modified by the PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
petrutlucian94 committed Dec 12, 2024
1 parent 47fb310 commit 234c317
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/actions/download-k8s-snap/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ runs:
shell: bash
id: retrieve-path
run: |
if [[ -n "${{ inputs.artifact }}"]]; then
if [[ -n "${{ inputs.artifact }}" ]]; then
snap_path="${{ github.workspace }}/${{ inputs.artifact }}"
else
snap_path=snap_path="${{ github.workspace }}/snap.k8s"
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/cron-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Security and quality nightly scan
on:
schedule:
- cron: '0 10 * * *'
pull_request:
paths:
- .github/workflows/cron-jobs.yaml
- .github/workflows/security-scan.yaml

permissions:
contents: read
Expand Down Expand Up @@ -70,7 +74,6 @@ jobs:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
runs-on: ubuntu-latest
strategy:
matrix:
include:
Expand All @@ -83,4 +86,4 @@ jobs:
uses: ./.github/workflows/security-scan.yaml
with:
channel: ${{ matrix.channel }}
checkout-ref: ${{ $matrix.branch }}
checkout-ref: ${{ matrix.branch }}
10 changes: 7 additions & 3 deletions .github/workflows/nightly-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Nightly Latest/Edge Tests
on:
schedule:
- cron: "0 0 * * *" # Runs every midnight
pull_request:
paths:
- .github/workflows/nightly-test.yaml
- .github/workflows/e2e-tests.yaml

permissions:
contents: read
Expand All @@ -14,11 +18,11 @@ jobs:
matrix:
os: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04"]
arch: ["amd64", "arm64"]
release: ["latest/edge"]
channel: ["latest/edge"]
fail-fast: false # TODO: remove once arm64 works
uses: ./.github/workflows/e2e-tests.yaml
with:
arch: ${{ matrix.arch }}
os: ${{ matrix.os }}
release: latest/edge
test-tags: up_to_weekly
channel: ${{ matrix.channel }}
test-tags: 'up_to_weekly'

0 comments on commit 234c317

Please sign in to comment.