Skip to content

Commit

Permalink
Move pkl workflows to pkl-workflows dir
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa authored Sep 27, 2024
1 parent 7e13d7b commit ca54c01
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 19 deletions.
10 changes: 0 additions & 10 deletions .githooks/pre-commit

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ jobs {
...Steps.checkoutAndInstallPkl
new {
name = "Convert pkl actions to yaml"
run = """
for file in .github/workflows/*.pkl; do
pkl eval "$file" -o "${file/.pkl/generated.yml}"
done
"""
`working-directory` = ".github/pkl-workflows"
run = "./updateWorkflows.sh"
}
new {
name = "Verify if pkl actions are converted"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions .github/pkl-workflows/updateWorkflows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

for file in *.pkl; do
pkl eval "$file" -o "../workflows/$(basename "${file/.pkl/.generated.yml}")"
done
6 changes: 2 additions & 4 deletions .github/workflows/check-actions.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ jobs:
with:
pkl-version: 0.26.3
- name: Convert pkl actions to yaml
run: |-
for file in .github/workflows/*.pkl; do
pkl eval "$file" -o "${file/.pkl/generated.yml}"
done
working-directory: .github/pkl-workflows
run: ./updateWorkflows.sh
- name: Verify if pkl actions are converted
run: git diff --exit-code

0 comments on commit ca54c01

Please sign in to comment.