Skip to content

Commit cad5d19

Browse files
authored
Bump pkl.impl.ghactions to version 0.7.1 (apple#70)
1 parent f678b63 commit cad5d19

3 files changed

Lines changed: 31 additions & 3 deletions

File tree

.github/PklProject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ amends "pkl:Project"
1818

1919
dependencies {
2020
["pkl.impl.ghactions"] {
21-
uri = "package://pkg.pkl-lang.org/pkl-project-commons/pkl.impl.ghactions@0.6.0"
21+
uri = "package://pkg.pkl-lang.org/pkl-project-commons/pkl.impl.ghactions@0.7.1"
2222
}
2323
["gha"] { uri = "package://pkg.pkl-lang.org/github.com/stefma/pkl-gha/com.github.action@0.0.6" }
2424
}

.github/PklProject.deps.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
},
1111
"package://pkg.pkl-lang.org/pkl-project-commons/pkl.impl.ghactions@0": {
1212
"type": "remote",
13-
"uri": "projectpackage://pkg.pkl-lang.org/pkl-project-commons/pkl.impl.ghactions@0.6.0",
13+
"uri": "projectpackage://pkg.pkl-lang.org/pkl-project-commons/pkl.impl.ghactions@0.7.1",
1414
"checksums": {
15-
"sha256": "410db569a518ff7e5bb155ec6dc9b10bed3f28fed248bd09e84e4ce26b507aca"
15+
"sha256": "f8efc4b174855a2fafdab8ed792de4b0cb89b0516d688c8540eea13af20e0f80"
1616
}
1717
}
1818
}

.github/workflows/prb.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,31 @@ jobs:
6161
with:
6262
name: test-results-event-file
6363
path: ${{ github.event_path }}
64+
check-pkl-github-actions:
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v5
68+
- name: Setup Pkl
69+
id: setup-pkl
70+
env:
71+
PKL_VERSION: 0.30.0
72+
PKL_FILENAME: pkl
73+
PKL_DOWNLOAD_URL: https://github.com/apple/pkl/releases/download/0.30.0/pkl-linux-amd64
74+
shell: bash
75+
run: |-
76+
DIR="$(mktemp -d /tmp/pkl-$PKL_VERSION-XXXXXX)"
77+
PKL_EXEC="$DIR/$PKL_FILENAME"
78+
curl -sfL -o $PKL_EXEC "$PKL_DOWNLOAD_URL"
79+
chmod +x $PKL_EXEC
80+
echo "$DIR" >> "$GITHUB_PATH"
81+
echo "pkl_exec=$PKL_EXEC" >> "$GITHUB_OUTPUT"
82+
- shell: bash
83+
run: pkl eval -m .github/ --project-dir .github/ .github/index.pkl
84+
- name: check git status
85+
shell: bash
86+
run: |-
87+
if [ -n "$(git status --porcelain)" ]; then
88+
echo "Running pkl resulted in a diff! You likely need to run 'pkl eval' and commit the changes."
89+
git diff --name-only
90+
exit 1
91+
fi

0 commit comments

Comments
 (0)