quatalog-scraper/.github/workflows/autocompile.yml
3eef8a28f26fb2bcc514e6f1938929a1f931762 7c5fe01bf0 Clean up workflow
2023-02-06 17:32:44 -05:00

29 lines
619 B
YAML

name: Autocompile
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build scraper
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout main branch
uses: actions/checkout@v3
- name: Compile (make)
run: |
cd bin
make
- name: Push compiled binary
run: |
git config --global user.name "Quatalog Compiler"
git config --global user.email "github_actions@quatalog.com"
git add bin
git commit -m "Recompile scraper : $(date)" || exit 0
git push