-
Notifications
You must be signed in to change notification settings - Fork 53
38 lines (36 loc) · 1.3 KB
/
ecosystem-batch-save-temp-res-to-db.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Ecosystem | Batch | merge check files and push to db
on:
workflow_dispatch:
inputs:
batch_folder:
description: "batch_check_ folder with json to merge."
required: true
jobs:
batch_save_files_to_db:
runs-on: ubuntu-latest
steps:
- name: Setup variables
id: vars
run: |
echo "datetime=$(date +'%Y_%m_%d_%H_%M')" >> "$GITHUB_OUTPUT"
echo "pr_branch_name=batch_checks_$(date +'%Y_%m_%d_%H_%M')" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Merge files and save to db
run: python manager.py tests process_temp_test_results_files --folder_name=${{ github.event.inputs.batch_folder }}
- name: Commit changes
run: |
git pull --rebase --autostash
git add ecosystem/resources/
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Merge temp files for ${{ github.event.inputs.branch }}" --allow-empty
git pull --rebase --autostash
git push