Skip to content

Commit 7e309ab

Browse files
ci: Update release workflow
1 parent 1df68f7 commit 7e309ab

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

Diff for: .github/workflows/release.yml

+27-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,41 @@
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: Fetch tags
28+
run: git fetch --prune --unshallow --tags
29+
- name: Install Neovim
30+
uses: rhysd/action-setup-vim@v1
31+
id: neovim
32+
with:
33+
neovim: true
34+
version: v0.10.3
35+
- name: Update changelog
36+
run: |
37+
nvim -l scripts/generate_changelog.lua 0.4.2
38+
# nvim -l scripts/generate_changelog.lua ${{ github.event.inputs.version }}
39+
- name: Print changelog
40+
run: |
41+
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)