Skip to content

Update code list 28

Update code list 28 #1

Workflow file for this run

name: Update code list 28
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'CLR/Rec28/current/code-list.csv'
jobs:
diff:
runs-on: ubuntu-latest
environment:
name: test
url: https://test.uncefact.org/vocabulary/vocab-codes
steps:
- name: Check out this repo
uses: actions/checkout@v4
with:
fetch-depth: 0
path: vocab-codes
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Checkout outpuuts repo
uses: actions/checkout@v4
with:
repository: uncefact/vocabulary-outputs
path: vocabulary-outputs
ref: vocab-codes
token: ${{ secrets.PAT_TOKEN }}
- name: Commit and push if it changed
run: |-
cd vocab-codes/CLR/Rec28/
python csv_to_json.py
cd ../../../
cp vocab-codes/CLR/Rec28/current/rec28.json vocabulary-outputs/_data
cd vocabulary-outputs
git config user.name "Automated"
git config user.email "[email protected]"
git add "_data/rec28.json"
git status
timestamp=$(date -u)
git commit -m "feat: update Recommendation Code List 28" || exit 0
git push origin vocab-codes