mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-07 00:14:21 +01:00
Otherwise we'll get the following error from the workflow: ``` The workflow is not valid. .github/workflows/ci-on-push.yaml (Line: 24, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.COMMIT_HASH .github/workflows/ci-on-push.yaml (Line: 25, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PR_NUMBER ``` Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
21 lines
417 B
YAML
21 lines
417 B
YAML
name: Kata Containers Nightly CI
|
|
on:
|
|
schedule:
|
|
cron: '0 0 * * *'
|
|
|
|
env:
|
|
COMMIT_HASH: ${GITHUB_REF}
|
|
|
|
jobs:
|
|
set-fake-pr-number:
|
|
runs-on: ubuntu-latest
|
|
run: |
|
|
echo "PR_NUMBER=$(date +%Y%m%d%H%M%S)" >> "$GITHUB_ENV"
|
|
|
|
kata-containers-ci-on-push:
|
|
uses: ./.github/workflows/ci.yaml
|
|
with:
|
|
commit-hash: $COMMIT_HASH
|
|
pr-number: $PR_NUMBER
|
|
tag: $PR_NUMBER-$COMMIT_HASH-nightly
|