Skip to content

Commit 8fa488e

Browse files
ci: Update release workflow
1 parent 1df68f7 commit 8fa488e

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

Diff for: .github/workflows/release.yml

+25-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,39 @@
1+
# on:
2+
# workflow_dispatch:
3+
# inputs:
4+
# version:
5+
# type: string
6+
# description: 'Version'
7+
# required: true
18
on:
29
push:
310
branches:
4-
- master
11+
- feat/changelog
512

613
permissions:
714
contents: write
815
pull-requests: write
916

10-
name: release-please
17+
name: release
1118

1219
jobs:
13-
release-please:
20+
tag:
1421
runs-on: ubuntu-latest
1522
steps:
16-
- uses: googleapis/release-please-action@v4
23+
- uses: actions/checkout@v4
1724
with:
25+
fetch-depth: 0
1826
token: ${{ secrets.GH_TOKEN }}
19-
release-type: simple
27+
- name: Install Neovim
28+
uses: rhysd/action-setup-vim@v1
29+
id: neovim
30+
with:
31+
neovim: true
32+
version: v0.10.3
33+
- name: Update changelog
34+
run: |
35+
nvim -l scripts/generate_changelog.lua 0.4.2
36+
# nvim -l scripts/generate_changelog.lua ${{ github.event.inputs.version }}
37+
- name: Print changelog
38+
run: |
39+
cat docs/changelog.org

Diff for: scripts/generate_changelog.lua

+2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ local function populate_section(content, name, list)
1313
end
1414
local function generate_changelog()
1515
local latest_tag = vim.fn.system('git describe --tags `git rev-list --tags --max-count=1`'):gsub('\n', '')
16+
print('latest tag', latest_tag)
1617
local commits = vim.fn.systemlist('git log ' .. latest_tag .. "..master --pretty=format:'%s'")
18+
print(commits, vim.inspect(commits))
1719
local fixes = {}
1820
local features = {}
1921
local breaking_changes = {}

0 commit comments

Comments
 (0)