-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (39 loc) · 1.28 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Test CI Stata
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Stata Action
id: ci-stata
uses: ledwindra/continuous-integration-stata@v1
with:
url: ${{ secrets.URL }}
version: ${{ secrets.VERSION }}
serial-number: ${{ secrets.SERIAL_NUMBER }}
code: ${{ secrets.CODE }}
authorization: ${{ secrets.AUTHORIZATION }}
first-name: ${{ secrets.FIRST_NAME }}
last-name: ${{ secrets.LAST_NAME }}
stata-edition: ${{ secrets.STATA_EDITION }}
- name: Install LaTeX and compile tex file to pdf
run: |
# https://gist.github.com/rain1024/98dd5e2c6c8c28f9ea9d
sudo apt-get install texlive-latex-base
pdflatex regression-table.tex
- name: Make a git commit
env:
EMAIL: ${{ secrets.EMAIL }}
USERNAME: ${{ secrets.USERNAME }}
run: |
git status
git config --global user.email ${EMAIL}
git config --global user.name ${USERNAME}
mkdir -p latex
mv regression-table* latex/
git add data/ latex/
git commit --allow-empty -m "Updated data and LaTeX table"
git pull --rebase origin main
git push origin main