-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (33 loc) · 1.07 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
name: LuaRocks Workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Lua and LuaRocks
run: |
sudo apt-get update -y
sudo apt-get install -y lua5.3 lua5.3-dev luarocks
luarocks --local install http
luarocks --local install htmlparser
luarocks --local install http.request
shell: bash
- name: Retrieve Lua script from GitHub
run: |
curl -o script.lua https://raw.githubusercontent.com/impulsh/gmod-globals-scraper/master/scraper.lua
shell: bash
- name: Run Lua script
run: |
lua script.lua
shell: bash
- name: Upload output text file to repo root
run: |
mv generated_globals.txt $GITHUB_WORKSPACE/generated_globals.txt
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add generated_globals.txt
git commit -m "Add generated_globals.txt" || true
git push
shell: bash