Another Test #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |