https://github.com/junzhengca/pkl-gh-actions
Playground to use Apple Pkl with GitHub Actions
https://github.com/junzhengca/pkl-gh-actions
Last synced: 2 months ago
JSON representation
Playground to use Apple Pkl with GitHub Actions
- Host: GitHub
- URL: https://github.com/junzhengca/pkl-gh-actions
- Owner: junzhengca
- License: mit
- Created: 2024-04-29T12:07:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-29T13:17:12.000Z (about 1 year ago)
- Last Synced: 2025-03-29T15:11:40.410Z (2 months ago)
- Language: Makefile
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pkl-gh-actions
Playground to use Apple Pkl with GitHub Actions## Repo Structure
### Pkl files
- `echo_action.pkl` - This is a Pkl template definition file, you can amend it. And it exposes a function called `getJob(message)` to quickly generate a GitHub Actions job that echos `message`
- `hello_world.pkl` - GitHub Action that simply amends `echo_action.pkl` without overrides.
- `my_name.pkl` - GitHub Action that amends `echo_actions.pkl` and changes the output message to `Jun Zheng`.
### Other files
- `install-pkl.sh` - Script to automatically download `pkl` binary in current directory. Only works for x86 Linux.
- `Makefile` - Build commands
## Setup Environment
To setup your environment, download `pkl` and put the binary in current directory.
https://pkl-lang.org/main/current/pkl-cli/index.html#installation
Then to generate GitHub Actions, simply run `make all`.