quatalog-scraper/.github/workflows/autocompile.yml

30 lines
644 B
YAML
Raw Normal View History

2023-02-06 20:13:23 +00:00
name: Autocompile
on:
2023-02-10 02:16:58 +00:00
workflow_dispatch:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
2023-02-06 20:13:23 +00:00
jobs:
build:
2023-02-06 22:32:44 +00:00
name: Build scraper
2023-02-06 20:13:23 +00:00
runs-on: ubuntu-latest
2023-02-06 22:28:31 +00:00
permissions:
contents: write
2023-02-06 20:13:23 +00:00
steps:
2023-02-06 22:32:44 +00:00
- name: Checkout main branch
uses: actions/checkout@v3
2023-02-06 20:13:23 +00:00
- 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