Skip to content

Commit

Permalink
add if
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesward committed Mar 30, 2024
1 parent 49f9372 commit 6fef003
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
```
1 change: 1 addition & 0 deletions src/GitHubAction.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class Environment {
class Job {
// todo: sum type
`runs-on`: String
`if`: String?
steps: Listing<Step>
needs: String?
permissions: Permissions?
Expand Down

0 comments on commit 6fef003

Please sign in to comment.