2023-02-06 20:13:23 +00:00
|
|
|
name: Autocompile
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
2023-02-06 22:28:31 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2023-02-06 20:13:23 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Compile (make)
|
2023-02-06 21:42:41 +00:00
|
|
|
run: |
|
|
|
|
cd bin
|
|
|
|
make
|
2023-02-06 20:13:23 +00:00
|
|
|
- name: Push compiled binary
|
|
|
|
run: |
|
|
|
|
git config --global user.name "Quatalog Compiler"
|
|
|
|
git config --global user.email "github_actions@quatalog.com"
|
2023-02-06 22:11:28 +00:00
|
|
|
git add bin
|
2023-02-06 22:28:31 +00:00
|
|
|
git commit -m "Recompile scraper : $(date)" || exit 0
|
2023-02-06 20:13:23 +00:00
|
|
|
git push
|