From 6fef003c9722d444d4f4b58c856ab39f17bb60e3 Mon Sep 17 00:00:00 2001 From: James Ward Date: Sat, 30 Mar 2024 10:04:38 -0600 Subject: [PATCH] add if --- README.md | 12 +++++++----- src/GitHubAction.pkl | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 152d48e..5396661 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Pkl GitHub Actions `.github/workflows/hello.pkl` ``` -amends "package://pkg.pkl-lang.org/github.com/jamesward/pklgha/pklgha@0.0.9#/GitHubAction.pkl" +amends "package://pkg.pkl-lang.org/github.com/jamesward/pklgha/pklgha@0.0.11#/GitHubAction.pkl" on { push { @@ -58,7 +58,9 @@ pkl eval -f yaml -o .github/workflows/release.yaml .github/workflows/release.pkl ``` Release -``` -git tag pklgha@0.0.x -git push --atomic origin main pklgha@0.0.x -``` +1. Update the version above +1. Tag and push + ``` + git tag pklgha@0.0.x + git push --atomic origin main pklgha@0.0.x + ``` diff --git a/src/GitHubAction.pkl b/src/GitHubAction.pkl index 500159d..6197e71 100644 --- a/src/GitHubAction.pkl +++ b/src/GitHubAction.pkl @@ -60,6 +60,7 @@ class Environment { class Job { // todo: sum type `runs-on`: String + `if`: String? steps: Listing needs: String? permissions: Permissions?