fix(nightly): ensure only relevant git tags are considered

Previously non-matching tags were not filtered out from the list of
valid versions. It wasn't an issue though cause all current releases do
match the pattern we were looking for. But that will not be the case for
much longer when stable releases are added into the mix.
This commit is contained in:
2021-07-03 00:25:08 +01:00
parent bd947f7904
commit 5b08d7d917
2 changed files with 10 additions and 2 deletions

View File

@@ -14,7 +14,10 @@ cask 'emacs-app-nightly' do
url 'https://github.com/jimeh/emacs-builds.git'
strategy :git do |tags|
tags.map do |tag|
tag.gsub(/^Emacs\.(\d{4}-\d{2}-\d{2}\.\w+\.master)$/i, '\\1')
m = /^Emacs\.(\d{4}-\d{2}-\d{2}\.\w+\.master)$/.match(tag)
next unless m
m[1]
end.compact
end
end
@@ -22,6 +25,7 @@ cask 'emacs-app-nightly' do
conflicts_with(
cask: %w[
emacs-app
emacs-app-good
emacs
emacs-nightly
emacs-pretest

View File

@@ -14,7 +14,10 @@ cask 'emacs-app-nightly' do
url 'https://github.com/jimeh/emacs-builds.git'
strategy :git do |tags|
tags.map do |tag|
tag.gsub(/^Emacs\.(\d{4}-\d{2}-\d{2}\.\w+\.master)$/i, '\\1')
m = /^Emacs\.(\d{4}-\d{2}-\d{2}\.\w+\.master)$/.match(tag)
next unless m
m[1]
end.compact
end
end
@@ -22,6 +25,7 @@ cask 'emacs-app-nightly' do
conflicts_with(
cask: %w[
emacs-app
emacs-app-good
emacs
emacs-nightly
emacs-pretest