remove lua-inspect #19
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: Create json index | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
reindex-json-file: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: leafo/gh-actions-lua@v10 | |
- uses: leafo/gh-actions-luarocks@v4 | |
- name: Install libzzip-dev | |
run: sudo apt-get install -y libzzip-dev | |
- name: Install luarocks modules | |
run: | | |
luarocks install json-lua | |
luarocks install luazip | |
- name: Run indexing | |
run: | | |
lua reindex.lua | |
# Commit all changed files back to the repository | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Automated package index update. | |
file_pattern: '*.packages.json' |