Skip to content

Commit

Permalink
black + change input
Browse files Browse the repository at this point in the history
  • Loading branch information
mickahell committed Aug 19, 2023
1 parent 8d5b336 commit fe3791c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ecosystem-batch-save-temp-res-to-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Ecosystem | Batch | merge check files and push to db

on:
workflow_dispatch:
inputs:
batch_folder:
description: 'Github branch to push changes to'
required: true

jobs:
batch_save_files_to_db:
Expand All @@ -22,7 +26,7 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Merge files and save to db
run: python manager.py process_temp_test_results_files --folder_name=${{ github.event.inputs.branch }}
run: python manager.py process_temp_test_results_files --folder_name=${{ github.event.inputs.batch_folder }}
- name: Commit changes
run: |
git pull --rebase --autostash
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ecosystem-project-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ jobs:
project_check_job:
runs-on: ubuntu-latest
steps:
- name: Running for ${{ github.event.client_payload.repo_url }}
- name: Running for ${{ github.event.client_payload.repo_name }}
id: info
run: |
echo "Repo name : ${{ github.event.client_payload.repo_url }}"
echo "Running check for ${{ github.event.client_payload.repo_url }}..."
echo "Will push changes to ${{ github.event.client_payload.branch_name }}..."
- uses: actions/checkout@v3
Expand Down
4 changes: 1 addition & 3 deletions ecosystem/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def dispatch_check_workflow(
},
)
if response.ok:
self.logger.info(
"Success response on dispatch event. %s", response.text
)
self.logger.info("Success response on dispatch event. %s", response.text)
else:
self.logger.warning(
"Something wend wrong with dispatch event: %s", response.text
Expand Down

0 comments on commit fe3791c

Please sign in to comment.