Skip to content

Commit ef3118c

Browse files
authored
[pkl.impl.ghactions] Allow configuring tags to ignore for release trigger (#69)
1 parent 61e62ce commit ef3118c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/PklProject.deps.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"package://pkg.pkl-lang.org/pkl-project-commons/pkl.impl.ghactions@1": {
1212
"type": "local",
13-
"uri": "projectpackage://pkg.pkl-lang.org/pkl-project-commons/pkl.impl.ghactions@1.3.5",
13+
"uri": "projectpackage://pkg.pkl-lang.org/pkl-project-commons/pkl.impl.ghactions@1.4.0",
1414
"path": "../packages/pkl.impl.ghactions"
1515
},
1616
"package://pkg.pkl-lang.org/pkl-pantry/pkl.experimental.deepToTyped@1": {

packages/pkl.impl.ghactions/PklCI.pkl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ build: Workflow
8989
/// This turns into a workflow called "Release".
9090
release: Workflow?
9191

92+
/// Tag glob patterns to ignore for releases
93+
releaseIgnoreTags: Listing<String>?
94+
9295
/// The workflow that runs when commits land on `release/x.x` branches.
9396
///
9497
/// The following fields are amended with additional settings:
@@ -279,12 +282,12 @@ local effectiveReleaseWorkflow = (release) {
279282
}
280283
on {
281284
push {
282-
tags {
283-
"**"
284-
}
285-
`branches-ignore` {
286-
"**"
285+
when (releaseIgnoreTags != null) {
286+
`tags-ignore` = releaseIgnoreTags
287+
} else {
288+
tags { "**" }
287289
}
290+
`branches-ignore` { "**" }
288291
}
289292
}
290293
jobs =

packages/pkl.impl.ghactions/PklProject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
amends "../basePklProject.pkl"
1818

1919
package {
20-
version = "1.3.5"
20+
version = "1.4.0"
2121
}
2222

2323
dependencies {

0 commit comments

Comments
 (0)