Skip to content

Commit

Permalink
Merge pull request #156 from StartAutomating/Irregular-Liquid
Browse files Browse the repository at this point in the history
Irregular liquid
  • Loading branch information
StartAutomating authored Oct 16, 2022
2 parents 6eaf672 + fc3c498 commit 105dc07
Show file tree
Hide file tree
Showing 32 changed files with 312 additions and 19 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/OnIssue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

name: OnIssueChanged
on:
issues:
workflow_dispatch:
jobs:
RunGitPub:
runs-on: ubuntu-latest
if: ${{ success() }}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Use GitPub Action
uses: StartAutomating/GitPub@main
id: GitPub
with:
TargetBranch: edits-$([DateTime]::Now.ToString("r").Replace(":","-").Replace(" ", ""))
CommitMessage: Posting with GitPub [skip ci]
PublishParameters: |
{
"Get-GitPubIssue": {
"Repository": '${{github.repository}}',
},
"Get-GitPubRelease": {
"Repository": '${{github.repository}}',
},
"Publish-GitPubJekyll": {
"OutputPath": "docs/_posts"
}
}
50 changes: 48 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
## 0.7.4:
## 0.7.5:

* Added Patterns for Liquid:
* ?<Liquid_Expression> (Fixes #153)
* ?<Liquid_Tag> (Fixes #154)

---

## 0.7.4:
* ANSI Improvements:
* Regenerated ?<ANSI_Color> (Fixes #150)
* Added ?<ANSI_Cursor> (Fixes #151)

---

## 0.7.3:
Expand All @@ -10,6 +19,7 @@
* ?<ANSI_4BitColor> now supports bright ranges (Fixes #145)
* ?<ANSI_8BitColor>/?<ANSI_24BitColor> now supports background colors (Fixes #144)
* ?<ANSI_8BitColor>/?<ANSI_24BitColor> now supports underline colors (Fixes #146)

---

## 0.7.2:
Expand All @@ -25,6 +35,7 @@
* ?<ANSI_Underline> (Fixes #139)
* ?<ANSI_Style> (Fixes #140)
* ?<ANSI_Note>: Fixing capture names (Fixes #130)

---

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

---

## 0.7.0:
Expand All @@ -48,12 +60,14 @@
* ?<Mustache_Tag> (Fixes #121)
* New-Regex -LiteralCharacter '_' no longer escapes (Fixes #122)
* Reducing module size (excluding assets) (Fixes #118)

---

## 0.6.9:
* Adding ?<Markdown_Link> (Fixes #117)
* GitHub Action now prefers local bits (Fixes #111)
* Using PipeScript to enhance the repository experience (Fixes #119)

---

## 0.6.8:
Expand All @@ -64,6 +78,7 @@
* Automatically documenting module (Fixes #109)
* Automatically building module formatting (Fixes #112)
* Fixing Documentation (Fixes #115)

---

## 0.6.7:
Expand All @@ -76,18 +91,24 @@
* Additional Tracing in GitHub Action. Now ready for use. (Fixing #93)
* Additional Improvements:
* [SavedPatterns.md](SavedPatterns.md) now automatically updates.

---

## 0.6.6:
* New Regexes:
* ?<C_Enum> (#98)
* ?<C_Struct> (#99)
* Fixing Issues with whitespace in ?<FFMpeg_Progress> (#97)

---

## 0.6.5
* Renaming Regex: ?<IPV4Address> is now ?<Network_IPV4Address> (#90)
* New Regex: ?<Network_MACAddress> (#89)
* Use-Regex -Extract: Now attempting [Timespan] before [DateTime] (#88)

---

## 0.6.4
* Renaming Write-RegEx to New-RegEx (#66) ** Write-RegEx will remain aliased until at least 0.7**
* Fixing Issue in Embedding (#82)
Expand All @@ -98,7 +119,9 @@
* Adding ?<FFMpeg_Input> (#83)
* Adding ?<FFMpeg_Output> (#83)
* Adding ?<FFMpeg_Metadata> (#83)

---

## 0.6.3
New Regular Expressions:
* ?<CNC_GCode> (Fixes #76)
Expand All @@ -115,19 +138,25 @@ New Regular Expressions:
* Subtitle Regexes (Fixes #72)
* ?<Subtitle_SRT>
* ?<Subtitle_VTT>

---

## 0.6.2
New Regular Expressions:
* ?<Unix_Cron_Interval> (Fixes #67)
* ?<Unix_Duration> (Fixes #69)

---

## 0.6.1
* New Command: Remove-RegEx (Fixes #62)
* Set-RegEx now supports -PassThru (Fixes #61)
* Set-RegEx now allows modifiers (Fixes #60)
* Use-RegEx now allows -Pattern to be directly provided, and supplies an ArgumentCompleter (Fixes #59)
Hat Tips: @JayKul, @LaurentDardenne

---

## 0.6
* JSON Regex Improvements
* ?<JSON_Property> now can handle quotes
Expand All @@ -136,7 +165,9 @@ Hat Tips: @JayKul, @LaurentDardenne
* ?<Markdown_CodeBlock>
* ?<Markdown_ThematicBreak>
* ?<REST_Variable> is now a generator.

---

## 0.5.9
* New RegEx:
* ?<C_IfDef>
Expand All @@ -147,14 +178,17 @@ Hat Tips: @JayKul, @LaurentDardenne
* -Atomic now indents
* -Or now indents
* No longer makes -Then/-Else explicily non-capturing

---
## 0.5.8

## 0.5.8
* New RegEx:
* ?<RegularExpression_Quantifier>
* Fixes to RegExes:
* ?<REST_Variable> now allows variables to be embedded within <>s

---

## 0.5.7
* New RegExes:
* ?<Security_AccessToken>
Expand All @@ -164,7 +198,9 @@ Hat Tips: @JayKul, @LaurentDardenne
* ?<IPV4Address> will no longer match digits past the byte-range. (#38)
* New Capabilities:
* Write-RegEx -DigitMax

---

## 0.5.6
* New RegExes:
* ?<Code_SemanticVersion>
Expand All @@ -179,7 +215,9 @@ Hat Tips: @JayKul, @LaurentDardenne
* Write-RegEx -Atomic -Or no longer overgroups
* Write-RegEx -LiteralCharacter -Not now works as expected
* Write-RegEx -Atomic -Min/-Max location fixed

---

## 0.5.5
* New Programming RegExes:
* ?<PowerShell_Requires>
Expand All @@ -192,13 +230,17 @@ Hat Tips: @JayKul, @LaurentDardenne
* ?<REST_Variable>:
* support for {/optionalsegments} (as seen in Git)
* dollar sign now requires backtick (URL parameters can be named $, e.g. $top)

---

## 0.5.4
* Fixes in Irregular import (no longer producing a module per RegEx on import)
* Fixing a subtle bug in Write-RegEx -Until (was failing to match when no characters were between)
* New regex:
* ?<HTML_LinkedData>, ?<HexColor>, ?<IPv4Address>

---

## 0.5.3
* Get/Export-Regex: Now supporting -As EmbeddedEngine (lambas) or -As Engine (smart aliases)
* Write-RegEx: Added -UnicodeCharacter
Expand All @@ -207,13 +249,17 @@ Hat Tips: @JayKul, @LaurentDardenne
* ?<Unix_Conf_Line>, ?<Unix_Conf_Section>, ?<Unix_Conf_File>, ?<Unix_Mount>, ?<Unix_FileSystemType>, ?<Unix_User>
* Updated RegEx Generators:
* ?<MultilineComment> now supports OpenSCAD (.scad)

---

## 0.5.2
* Use-RegEx now matches within returns by default.
* Use-RegEx can -Scan to match after a given item
* Use-Regex breaking change: -Parameter/-ArgumentList are now -ExpressionParameter/-ExpressionArgumentList
* Improving formatting (no longer showing match status, which was always 'true')

---

## 0.5.1
* Making Import-Regex support Regexes defined in other modules
* Allowing Import-Regex to import as lambdas
Expand Down
32 changes: 32 additions & 0 deletions GitHub/Jobs/RunGitPub.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@{
"runs-on" = "ubuntu-latest"
if = '${{ success() }}'
steps = @(
@{
name = 'Check out repository'
uses = 'actions/checkout@v2'
}
@{
name = 'Use GitPub Action'
uses = 'StartAutomating/GitPub@main'
id = 'GitPub'
with = @{
TargetBranch = 'edits-$([DateTime]::Now.ToString("r").Replace(":","-").Replace(" ", ""))'
CommitMessage = 'Posting with GitPub [skip ci]'
PublishParameters = @'
{
"Get-GitPubIssue": {
"Repository": '${{github.repository}}',
},
"Get-GitPubRelease": {
"Repository": '${{github.repository}}',
},
"Publish-GitPubJekyll": {
"OutputPath": "docs/_posts"
}
}
'@
}
}
)
}
4 changes: 4 additions & 0 deletions GitHub/Jobs/UseIrregularAction.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@{
"runs-on" = "ubuntu-latest"
steps = @('Checkout','UseIrregularAction')
}
7 changes: 7 additions & 0 deletions GitHub/Steps/UseIrregularAction.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@{
name = 'Use Irregular Action'
uses = 'StartAutomating/Irregular@master'
id = 'Irregular'
}


5 changes: 4 additions & 1 deletion Irregular.GitHubWorkflow.PSDevops.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
Push-Location $PSScriptRoot

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

New-GitHubWorkflow -Name "Run GitHub Action" -On Push, Demand -Job UseIrregularAction |
Set-Content .\.github\workflows\RunIrregularAction.yml -Encoding UTF8 -PassThru

New-GitHubWorkflow -On Issue, Demand -Job RunGitPub -Name OnIssueChanged |
Set-Content (Join-Path $PSScriptRoot .github\workflows\OnIssue.yml) -Encoding UTF8 -PassThru


Pop-Location
2 changes: 1 addition & 1 deletion Irregular.format.ps1xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-16"?>
<!-- Generated with EZOut 1.9.4: Install-Module EZOut or https://github.com/StartAutomating/EZOut -->
<!-- Generated with EZOut 1.9.6: Install-Module EZOut or https://github.com/StartAutomating/EZOut -->
<Configuration>
<ViewDefinitions>
<View>
Expand Down
Loading

0 comments on commit 105dc07

Please sign in to comment.