Skip to content

Merge pull request #15 from BA-OST-Index/dev #73

Merge pull request #15 from BA-OST-Index/dev

Merge pull request #15 from BA-OST-Index/dev #73

Workflow file for this run

name: Push
on:
push:
branches:
- 'main'
workflow_dispatch:
repository_dispatch:
types: [ost-data-update-event]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Update submodules
run: |
git submodule update --remote
- name: Run main.py
run: python main.py
- name: Push changes
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
cd data_export
git add .
git commit -m "Update: ${{ github.event.head_commit.message }}"
git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | xargs -L1 git config --unset-all
git push https://github-actions[bot]:$REPO_KEY@github.com/BA-OST-Index/ost_data_export.git HEAD:main
env:
REPO_KEY: ${{secrets.ACTION_SCRIPT}}