File tree 3 files changed +21
-6
lines changed
3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 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 * * *'
4
7
5
8
jobs :
6
9
update_readme :
Original file line number Diff line number Diff line change 1
1
* .snap
2
2
* .swp
3
+ * .txt
Original file line number Diff line number Diff line change @@ -32,17 +32,28 @@ apps:
32
32
desktop : usr/share/applications/nvim.desktop
33
33
34
34
parts :
35
+ name : publish ${{ matrix.nvimbranch }}
36
+ strategy :
37
+ fail-fast : false
38
+ matrix :
39
+ nvimbranch : [ stable, nightly ]
35
40
nvim :
36
41
source : https://github.com/neovim/neovim.git
37
42
override-pull : |
38
43
craftctl default
39
- branch="stable "
44
+ branch="${{ matrix.nvimbranch }} "
40
45
git checkout tags/${branch} -b ${branch}
41
46
major="$(awk '/NVIM_VERSION_MAJOR/{gsub(")","",$2); print $2}' CMakeLists.txt)"
42
47
minor="$(awk '/NVIM_VERSION_MINOR/{gsub(")","",$2); print $2}' CMakeLists.txt)"
43
48
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
46
57
plugin : make
47
58
override-build : |
48
59
echo "Building on $SNAP_ARCH"
You can’t perform that action at this time.
0 commit comments