Skip to content

Commit e5d88e2

Browse files
committed
Merge 'nightly'
2 parents 752cca5 + 5a21121 commit e5d88e2

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

.github/workflows/update-readme.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
---
2-
name: Update Readme
3-
on: workflow_dispatch
1+
name: automation
2+
on:
3+
workflow_dispatch:
4+
# Run daily at 11:45 UTC.
5+
schedule:
6+
- cron: '45 11 * * *'
47

58
jobs:
69
update_readme:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.snap
22
*.swp
3+
*.txt

snap/snapcraft.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,28 @@ apps:
3232
desktop: usr/share/applications/nvim.desktop
3333

3434
parts:
35+
name: publish ${{ matrix.nvimbranch }}
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
nvimbranch: [ stable, nightly ]
3540
nvim:
3641
source: https://github.com/neovim/neovim.git
3742
override-pull: |
3843
craftctl default
39-
branch="stable"
44+
branch="${{ matrix.nvimbranch }}"
4045
git checkout tags/${branch} -b ${branch}
4146
major="$(awk '/NVIM_VERSION_MAJOR/{gsub(")","",$2); print $2}' CMakeLists.txt)"
4247
minor="$(awk '/NVIM_VERSION_MINOR/{gsub(")","",$2); print $2}' CMakeLists.txt)"
4348
patch="$(awk '/NVIM_VERSION_PATCH/{gsub(")","",$2); print $2}' CMakeLists.txt)"
44-
version="v$major.$minor.$patch"
45-
craftctl set version="${version}"
49+
if [ stable = "${{ matrix.nvimbranch }}" ] ; then
50+
version="v$major.$minor.$patch"
51+
craftctl set version="${version}"
52+
else
53+
version_prefix="v$major.$minor.$patch"
54+
git_described="$(git describe --first-parent 2> /dev/null | perl -lpe 's/v\d.\d.\d-//g' | perl -lpe 's/-/+/g')"
55+
craftctl set version="${version_prefix}-${git_described}"
56+
fi
4657
plugin: make
4758
override-build: |
4859
echo "Building on $SNAP_ARCH"

0 commit comments

Comments
 (0)