Skip to content

Commit 105dc07

Browse files
Merge pull request #156 from StartAutomating/Irregular-Liquid
Irregular liquid
2 parents 6eaf672 + fc3c498 commit 105dc07

32 files changed

+312
-19
lines changed

.github/workflows/OnIssue.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
name: OnIssueChanged
3+
on:
4+
issues:
5+
workflow_dispatch:
6+
jobs:
7+
RunGitPub:
8+
runs-on: ubuntu-latest
9+
if: ${{ success() }}
10+
steps:
11+
- name: Check out repository
12+
uses: actions/checkout@v2
13+
- name: Use GitPub Action
14+
uses: StartAutomating/GitPub@main
15+
id: GitPub
16+
with:
17+
TargetBranch: edits-$([DateTime]::Now.ToString("r").Replace(":","-").Replace(" ", ""))
18+
CommitMessage: Posting with GitPub [skip ci]
19+
PublishParameters: |
20+
{
21+
"Get-GitPubIssue": {
22+
"Repository": '${{github.repository}}',
23+
},
24+
"Get-GitPubRelease": {
25+
"Repository": '${{github.repository}}',
26+
},
27+
"Publish-GitPubJekyll": {
28+
"OutputPath": "docs/_posts"
29+
}
30+
}
31+

CHANGELOG.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
## 0.7.4:
1+
## 0.7.5:
2+
3+
* Added Patterns for Liquid:
4+
* ?<Liquid_Expression> (Fixes #153)
5+
* ?<Liquid_Tag> (Fixes #154)
6+
7+
---
8+
9+
## 0.7.4:
210
* ANSI Improvements:
311
* Regenerated ?<ANSI_Color> (Fixes #150)
412
* Added ?<ANSI_Cursor> (Fixes #151)
13+
514
---
615

716
## 0.7.3:
@@ -10,6 +19,7 @@
1019
* ?<ANSI_4BitColor> now supports bright ranges (Fixes #145)
1120
* ?<ANSI_8BitColor>/?<ANSI_24BitColor> now supports background colors (Fixes #144)
1221
* ?<ANSI_8BitColor>/?<ANSI_24BitColor> now supports underline colors (Fixes #146)
22+
1323
---
1424

1525
## 0.7.2:
@@ -25,6 +35,7 @@
2535
* ?<ANSI_Underline> (Fixes #139)
2636
* ?<ANSI_Style> (Fixes #140)
2737
* ?<ANSI_Note>: Fixing capture names (Fixes #130)
38+
2839
---
2940

3041
## 0.7.1:
@@ -33,6 +44,7 @@
3344
* Updated Patterns:
3445
* ?<FFMpeg_Progress>: Supporting duplicated / dropped frames (Fixes #128)
3546
* ?<Code_BuildVersion>: No longer matching if preceeded by punctuation (Fixes #126)
47+
3648
---
3749

3850
## 0.7.0:
@@ -48,12 +60,14 @@
4860
* ?<Mustache_Tag> (Fixes #121)
4961
* New-Regex -LiteralCharacter '_' no longer escapes (Fixes #122)
5062
* Reducing module size (excluding assets) (Fixes #118)
63+
5164
---
5265

5366
## 0.6.9:
5467
* Adding ?<Markdown_Link> (Fixes #117)
5568
* GitHub Action now prefers local bits (Fixes #111)
5669
* Using PipeScript to enhance the repository experience (Fixes #119)
70+
5771
---
5872

5973
## 0.6.8:
@@ -64,6 +78,7 @@
6478
* Automatically documenting module (Fixes #109)
6579
* Automatically building module formatting (Fixes #112)
6680
* Fixing Documentation (Fixes #115)
81+
6782
---
6883

6984
## 0.6.7:
@@ -76,18 +91,24 @@
7691
* Additional Tracing in GitHub Action. Now ready for use. (Fixing #93)
7792
* Additional Improvements:
7893
* [SavedPatterns.md](SavedPatterns.md) now automatically updates.
94+
7995
---
96+
8097
## 0.6.6:
8198
* New Regexes:
8299
* ?<C_Enum> (#98)
83100
* ?<C_Struct> (#99)
84101
* Fixing Issues with whitespace in ?<FFMpeg_Progress> (#97)
102+
85103
---
104+
86105
## 0.6.5
87106
* Renaming Regex: ?<IPV4Address> is now ?<Network_IPV4Address> (#90)
88107
* New Regex: ?<Network_MACAddress> (#89)
89108
* Use-Regex -Extract: Now attempting [Timespan] before [DateTime] (#88)
109+
90110
---
111+
91112
## 0.6.4
92113
* Renaming Write-RegEx to New-RegEx (#66) ** Write-RegEx will remain aliased until at least 0.7**
93114
* Fixing Issue in Embedding (#82)
@@ -98,7 +119,9 @@
98119
* Adding ?<FFMpeg_Input> (#83)
99120
* Adding ?<FFMpeg_Output> (#83)
100121
* Adding ?<FFMpeg_Metadata> (#83)
122+
101123
---
124+
102125
## 0.6.3
103126
New Regular Expressions:
104127
* ?<CNC_GCode> (Fixes #76)
@@ -115,19 +138,25 @@ New Regular Expressions:
115138
* Subtitle Regexes (Fixes #72)
116139
* ?<Subtitle_SRT>
117140
* ?<Subtitle_VTT>
141+
118142
---
143+
119144
## 0.6.2
120145
New Regular Expressions:
121146
* ?<Unix_Cron_Interval> (Fixes #67)
122147
* ?<Unix_Duration> (Fixes #69)
148+
123149
---
150+
124151
## 0.6.1
125152
* New Command: Remove-RegEx (Fixes #62)
126153
* Set-RegEx now supports -PassThru (Fixes #61)
127154
* Set-RegEx now allows modifiers (Fixes #60)
128155
* Use-RegEx now allows -Pattern to be directly provided, and supplies an ArgumentCompleter (Fixes #59)
129156
Hat Tips: @JayKul, @LaurentDardenne
157+
130158
---
159+
131160
## 0.6
132161
* JSON Regex Improvements
133162
* ?<JSON_Property> now can handle quotes
@@ -136,7 +165,9 @@ Hat Tips: @JayKul, @LaurentDardenne
136165
* ?<Markdown_CodeBlock>
137166
* ?<Markdown_ThematicBreak>
138167
* ?<REST_Variable> is now a generator.
168+
139169
---
170+
140171
## 0.5.9
141172
* New RegEx:
142173
* ?<C_IfDef>
@@ -147,14 +178,17 @@ Hat Tips: @JayKul, @LaurentDardenne
147178
* -Atomic now indents
148179
* -Or now indents
149180
* No longer makes -Then/-Else explicily non-capturing
181+
150182
---
151-
## 0.5.8
152183

184+
## 0.5.8
153185
* New RegEx:
154186
* ?<RegularExpression_Quantifier>
155187
* Fixes to RegExes:
156188
* ?<REST_Variable> now allows variables to be embedded within <>s
189+
157190
---
191+
158192
## 0.5.7
159193
* New RegExes:
160194
* ?<Security_AccessToken>
@@ -164,7 +198,9 @@ Hat Tips: @JayKul, @LaurentDardenne
164198
* ?<IPV4Address> will no longer match digits past the byte-range. (#38)
165199
* New Capabilities:
166200
* Write-RegEx -DigitMax
201+
167202
---
203+
168204
## 0.5.6
169205
* New RegExes:
170206
* ?<Code_SemanticVersion>
@@ -179,7 +215,9 @@ Hat Tips: @JayKul, @LaurentDardenne
179215
* Write-RegEx -Atomic -Or no longer overgroups
180216
* Write-RegEx -LiteralCharacter -Not now works as expected
181217
* Write-RegEx -Atomic -Min/-Max location fixed
218+
182219
---
220+
183221
## 0.5.5
184222
* New Programming RegExes:
185223
* ?<PowerShell_Requires>
@@ -192,13 +230,17 @@ Hat Tips: @JayKul, @LaurentDardenne
192230
* ?<REST_Variable>:
193231
* support for {/optionalsegments} (as seen in Git)
194232
* dollar sign now requires backtick (URL parameters can be named $, e.g. $top)
233+
195234
---
235+
196236
## 0.5.4
197237
* Fixes in Irregular import (no longer producing a module per RegEx on import)
198238
* Fixing a subtle bug in Write-RegEx -Until (was failing to match when no characters were between)
199239
* New regex:
200240
* ?<HTML_LinkedData>, ?<HexColor>, ?<IPv4Address>
241+
201242
---
243+
202244
## 0.5.3
203245
* Get/Export-Regex: Now supporting -As EmbeddedEngine (lambas) or -As Engine (smart aliases)
204246
* Write-RegEx: Added -UnicodeCharacter
@@ -207,13 +249,17 @@ Hat Tips: @JayKul, @LaurentDardenne
207249
* ?<Unix_Conf_Line>, ?<Unix_Conf_Section>, ?<Unix_Conf_File>, ?<Unix_Mount>, ?<Unix_FileSystemType>, ?<Unix_User>
208250
* Updated RegEx Generators:
209251
* ?<MultilineComment> now supports OpenSCAD (.scad)
252+
210253
---
254+
211255
## 0.5.2
212256
* Use-RegEx now matches within returns by default.
213257
* Use-RegEx can -Scan to match after a given item
214258
* Use-Regex breaking change: -Parameter/-ArgumentList are now -ExpressionParameter/-ExpressionArgumentList
215259
* Improving formatting (no longer showing match status, which was always 'true')
260+
216261
---
262+
217263
## 0.5.1
218264
* Making Import-Regex support Regexes defined in other modules
219265
* Allowing Import-Regex to import as lambdas

GitHub/Jobs/RunGitPub.psd1

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@{
2+
"runs-on" = "ubuntu-latest"
3+
if = '${{ success() }}'
4+
steps = @(
5+
@{
6+
name = 'Check out repository'
7+
uses = 'actions/checkout@v2'
8+
}
9+
@{
10+
name = 'Use GitPub Action'
11+
uses = 'StartAutomating/GitPub@main'
12+
id = 'GitPub'
13+
with = @{
14+
TargetBranch = 'edits-$([DateTime]::Now.ToString("r").Replace(":","-").Replace(" ", ""))'
15+
CommitMessage = 'Posting with GitPub [skip ci]'
16+
PublishParameters = @'
17+
{
18+
"Get-GitPubIssue": {
19+
"Repository": '${{github.repository}}',
20+
},
21+
"Get-GitPubRelease": {
22+
"Repository": '${{github.repository}}',
23+
},
24+
"Publish-GitPubJekyll": {
25+
"OutputPath": "docs/_posts"
26+
}
27+
}
28+
'@
29+
}
30+
}
31+
)
32+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@{
2+
"runs-on" = "ubuntu-latest"
3+
steps = @('Checkout','UseIrregularAction')
4+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@{
2+
name = 'Use Irregular Action'
3+
uses = 'StartAutomating/Irregular@master'
4+
id = 'Irregular'
5+
}
6+
7+

Irregular.GitHubWorkflow.PSDevops.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
Push-Location $PSScriptRoot
33

44
Import-BuildStep -ModuleName Irregular
5-
New-GitHubWorkflow -Name "Test, Tag, Release, and Publish" -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish -On Push, Demand |
5+
New-GitHubWorkflow -Name "Test, Tag, Release, and Publish" -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, BuildModule -On Push, Demand |
66
Set-Content .\.github\workflows\IrregularTests.yml -Encoding UTF8 -PassThru
77

88
New-GitHubWorkflow -Name "Run GitHub Action" -On Push, Demand -Job UseIrregularAction |
99
Set-Content .\.github\workflows\RunIrregularAction.yml -Encoding UTF8 -PassThru
10+
11+
New-GitHubWorkflow -On Issue, Demand -Job RunGitPub -Name OnIssueChanged |
12+
Set-Content (Join-Path $PSScriptRoot .github\workflows\OnIssue.yml) -Encoding UTF8 -PassThru
1013

1114

1215
Pop-Location

Irregular.format.ps1xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-16"?>
2-
<!-- Generated with EZOut 1.9.4: Install-Module EZOut or https://github.com/StartAutomating/EZOut -->
2+
<!-- Generated with EZOut 1.9.6: Install-Module EZOut or https://github.com/StartAutomating/EZOut -->
33
<Configuration>
44
<ViewDefinitions>
55
<View>

0 commit comments

Comments
 (0)