Add issue template; set up Action to update Rockspec #542

This commit is contained in:
Luca Capezzuto 2023-01-12 20:42:39 +01:00
parent 4fa8e10c84
commit f832197eaa
3 changed files with 29 additions and 11 deletions

View File

@ -1,9 +1,6 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
name: Bugs
about: Bugs and unintended behavior
---

View File

@ -9,9 +9,28 @@ jobs:
linting:
runs-on: ubuntu-latest
steps:
- run: echo "Running tests triggered by a ${{ github.event_name }} event."
- run: echo "Testing ${{ github.ref }} from ${{ github.repository }} on ${{ runner.os }}"
- name: Check out code
- name: Checkout
uses: actions/checkout@v3
- name: Run tests
- name: Luacheck linter
uses: lunarmodules/luacheck@v0
rockspec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: leafo/gh-actions-lua@v9
- uses: leafo/gh-actions-luarocks@v4
- name: Update Rockspec
shell: bash
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
run: |
if [[ $(git diff *.rockspec | grep "+version") ]]
then
echo "Rockspec changed, uploading to LuaRocks.org"
luarocks upload *.rockspec --api-key "$LUAROCKS_API_KEY"
else
echo "Rockspec unchanged, nothing to do"
fi

View File

@ -1,13 +1,15 @@
rockspec_format = "3.0"
package = "lain"
version = "scm-1"
source = {
url = "git+https://github.com/lcpz/lain.git",
tag = "master"
url = "git+https://github.com/lcpz/lain.git"
}
description = {
summary = "Layout, widgets and utilities for Awesome WM",
detailed = "Alternative layouts, asynchronous widgets and utility functions for Awesome WM. Non-Lua dependency: curl (for IMAP, MPD and weather widgets).",
homepage = "https://github.com/lcpz/lain",
issues_url = "https://github.com/lcpz/lain/issues",
maintainer = "Luca Cpz",
license = "GPL2"
}
dependencies = {