2020-07-09 00:06:12 +08:00
|
|
|
# Copyright (c) 2020 Intel Corp.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
name: Publish commit for daily testing
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2023-01-04 03:24:04 +08:00
|
|
|
- cron: '50 22 * * *'
|
2020-07-09 00:06:12 +08:00
|
|
|
push:
|
|
|
|
branches:
|
2023-01-04 03:24:04 +08:00
|
|
|
- refs/tags/*
|
2020-07-09 00:06:12 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
get_version:
|
2023-03-18 18:11:12 +08:00
|
|
|
runs-on: ubuntu-22.04
|
2020-11-22 17:00:05 +08:00
|
|
|
if: github.repository == 'zephyrproject-rtos/zephyr'
|
2020-07-09 00:06:12 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Configure AWS Credentials
|
2023-04-15 14:33:24 +08:00
|
|
|
uses: aws-actions/configure-aws-credentials@v2
|
2020-07-09 00:06:12 +08:00
|
|
|
with:
|
2023-05-12 01:06:29 +08:00
|
|
|
aws-access-key-id: ${{ vars.AWS_TESTING_ACCESS_KEY_ID }}
|
|
|
|
aws-secret-access-key: ${{ secrets.AWS_TESTING_SECRET_ACCESS_KEY }}
|
2020-07-09 00:06:12 +08:00
|
|
|
aws-region: us-east-1
|
|
|
|
|
|
|
|
- name: install-pip
|
|
|
|
run: |
|
|
|
|
pip3 install gitpython
|
|
|
|
|
|
|
|
- name: checkout
|
2022-10-14 01:48:20 +08:00
|
|
|
uses: actions/checkout@v3
|
2020-07-17 20:12:38 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-07-09 00:06:12 +08:00
|
|
|
|
|
|
|
- name: Upload to AWS S3
|
|
|
|
run: |
|
|
|
|
python3 scripts/ci/version_mgr.py --update .
|
|
|
|
aws s3 cp versions.json s3://testing.zephyrproject.org/daily_tests/versions.json
|