Skip to content

Commit 381f7c5

Browse files
authored
Merge pull request #262 from rest-nvim/dev
2 parents 89c02d1 + 4873c7f commit 381f7c5

6 files changed

Lines changed: 45 additions & 23 deletions

File tree

.github/workflows/format.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ name: format
33
on:
44
push:
55
branches: [main]
6+
paths-ignore:
7+
- ".github/**"
8+
- "**.md"
69

710
jobs:
811
stylua:
912
runs-on: ubuntu-latest
1013
steps:
1114
- uses: actions/checkout@v2
1215
- name: Setup and run stylua
13-
uses: JohnnyMorganz/stylua-action@1.0.0
16+
uses: JohnnyMorganz/stylua-action@v3
1417
with:
1518
token: ${{ secrets.GITHUB_TOKEN }}
1619
args: --config-path=stylua.toml .
17-
- name: Commit files
18-
run: |
19-
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
20-
git config --local user.name "github-actions[bot]"
21-
if [[ ! -z $(git status -s) ]]; then
22-
git add lua/
23-
git commit -m "Format source code"
24-
fi
20+
- name: Commit changes
21+
uses: stefanzweifel/git-auto-commit-action@v4
22+
with:
23+
commit_message: "chore: autoformat with stylua"
24+
branch: ${{ github.ref }}
2525
- name: Push formatted files
2626
uses: ad-m/github-push-action@master
2727
with:

.github/workflows/luarocks.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Luarocks release
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
7+
jobs:
8+
luarocks-release:
9+
runs-on: ubuntu-latest
10+
name: Luarocks upload
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
- name: Luarocks Upload
15+
uses: mrcjkb/luarocks-tag-release@master
16+
env:
17+
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}

.github/workflows/release.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
name: Luarocks release
1+
name: Release Please Automatic Semver
2+
23
on:
34
push:
4-
tags:
5-
- "*"
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
611

712
jobs:
8-
luarocks-release:
13+
release:
14+
name: release
915
runs-on: ubuntu-latest
10-
name: Luarocks upload
1116
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v3
14-
- name: Luarocks Upload
15-
uses: mrcjkb/luarocks-tag-release@master
16-
env:
17-
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
17+
- uses: google-github-actions/release-please-action@v3
18+
with:
19+
release-type: simple
20+
package-name: rest.nvim
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: default
1+
name: test
22

33
on: [push, pull_request]
44

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# rest.nvim
44

55
![License](https://img.shields.io/github/license/NTBBloodbath/rest.nvim?style=for-the-badge)
6-
![Neovim version](https://img.shields.io/badge/Neovim-0.5-57A143?style=for-the-badge&logo=neovim)
6+
![Neovim version](https://img.shields.io/badge/Neovim-0.5-5ba246?style=for-the-badge&logo=neovim)
7+
![Matrix](https://img.shields.io/matrix/rest.nvim%3Amatrix.org?server_fqdn=matrix.org&style=for-the-badge&logo=element&label=Matrix&color=55b394&link=https%3A%2F%2Fmatrix.to%2F%23%2F%23rest.nvim%3Amatrix.org)
78

89
[Features](#features)[Install](#install)[Usage](#usage)[Contribute](#contribute)
910

stylua.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
column_width = 100
1+
column_width = 120
22
line_endings = "Unix"
33
indent_type = "Spaces"
44
indent_width = 2
55
quote_style = "AutoPreferDouble"
6+
call_parentheses = "Always"

0 commit comments

Comments
 (0)