Remove redundant comma from load_all_vocabs.py script. #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Handle updated vocabs | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Bring in repo - master branch | |
uses: actions/checkout@v1 | |
with: | |
ref: master | |
- name: install Python dependencies | |
run: | | |
python -m pip install -U pip | |
pip install -r scripts/requirements.txt | |
- id: file_changes | |
uses: trilom/[email protected] | |
with: | |
output: ',' | |
- name: detect file changes | |
env: | |
DB_USERNAME: ${{secrets.DB_USERNAME}} | |
DB_PASSWORD: ${{secrets.DB_PASSWORD}} | |
BASE_DB_URI: ${{vars.BASE_DB_URI_PROD}} | |
WEBSITE_URL: ${{vars.WEBSITE_URL_PROD}} | |
run: | | |
echo 'Run update script...' | |
a=${{steps.file_changes.outputs.files_added}} | |
m=${{steps.file_changes.outputs.files_modified}} | |
d=${{steps.file_changes.outputs.files_removed}} | |
r=${{steps.file_changes.outputs.files_renamed}} | |
if [ -z $a ]; then a="x"; fi | |
if [ -z $m ]; then m="x"; fi | |
if [ -z $d ]; then d="x"; fi | |
if [ -z $r ]; then r="x"; fi | |
python scripts/update_vocabs.py -a $a -m $m -d $d -r $r |