Skip to content

Commit 3054c55

Browse files
authored
Fixes (#48)
* Make __lockfile__ actually not be triggered by anything * Make __lockfile__ remove any actions that are no longer used * Cleanups and refactorings
1 parent f9eabb4 commit 3054c55

File tree

7 files changed

+20
-996
lines changed

7 files changed

+20
-996
lines changed

.github/PklProject.deps.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"resolvedDependencies": {
44
"package://pkg.pkl-lang.org/pkl-pantry/com.github.actions@1": {
55
"type": "remote",
6-
"uri": "projectpackage://pkg.pkl-lang.org/pkl-pantry/com.github.actions@1.2.0",
6+
"uri": "projectpackage://pkg.pkl-lang.org/pkl-pantry/com.github.actions@1.3.0",
77
"checksums": {
8-
"sha256": "eac84e03db6815625a0a8f8dfe4597421284ad28f4425dbd72f529b236fea6b9"
8+
"sha256": "76174cb974310b3d952280b76ed224eb4ee6fd5419bf696ad9a66fba44bd427d"
99
}
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.1.2",
13+
"uri": "projectpackage://pkg.pkl-lang.org/pkl-project-commons/pkl.impl.ghactions@1.1.3",
1414
"path": "../packages/pkl.impl.ghactions"
1515
},
1616
"package://pkg.pkl-lang.org/pkl-pantry/pkl.experimental.deepToTyped@1": {

.github/workflows/__lockfile__.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
# It also gets updated by dependabot (see .github/dependabot.yml).
55
# Generated from Workflow.pkl. DO NOT EDIT.
66
name: __lockfile__
7-
'on':
8-
schedule:
9-
- cron: '* * 31 2 *'
7+
'on': {}
108
jobs:
119
locks:
10+
if: 'false'
1211
runs-on: nothing
1312
steps:
1413
- name: EnricoMi/publish-unit-test-result-action@v2

packages/pkl.impl.ghactions/DependabotManagedCI.pkl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ local effectiveDependabot = (dependabot) {
7171
}
7272
}
7373

74-
local convertUses = (uses: String?) ->
75-
if (uses == null)
76-
null
77-
else
78-
locks[uses].renderDirective
79-
8074
local convertedWorkflows: Mapping<String, Workflow> =
8175
// don't do any lockfile stuff if in test mode.
8276
if (testMode)
@@ -87,7 +81,7 @@ local convertedWorkflows: Mapping<String, Workflow> =
8781
output {
8882
renderer {
8983
converters {
90-
["jobs[*].steps[*].uses"] = convertUses
84+
["jobs[*].steps[*].uses"] = (it) -> locks.getOrNull(it)?.renderDirective
9185
}
9286
}
9387
}

0 commit comments

Comments
 (0)