diff options
| author | Fuwn <[email protected]> | 2021-05-10 22:59:22 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-10 22:59:22 +0000 |
| commit | e79982ac31640603da14aabe0f63b2e8d9cd38ee (patch) | |
| tree | ff205c3b72c01ee3bf0c0412206f59b92436e4b3 /Makefile.toml | |
| parent | docs(contributing.md): add some contribution guidelines (diff) | |
| download | whirl-e79982ac31640603da14aabe0f63b2e8d9cd38ee.tar.xz whirl-e79982ac31640603da14aabe0f63b2e8d9cd38ee.zip | |
ci(make): create act-cli task
Act provides the ability to run GitHub actions locally, read more about Act
[here](https://github.com/nektos/act).
Diffstat (limited to 'Makefile.toml')
| -rw-r--r-- | Makefile.toml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.toml b/Makefile.toml index d59bf4f..fec5a68 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -100,3 +100,18 @@ args = [ [tasks.bnl] dependencies = ["docker-build", "docker-load"] +[tasks.ask-discord-token] +script = ''' +#!@duckscript + +echo github token: +github_token = read + +echo set ${github_token} as the current github token +set_env GITHUB_TOKEN ${github_token} +''' + +[tasks.act] +dependencies = ["ask-discord-token"] +command = "act" +args = ["-s", "GITHUB_TOKEN=${GITHUB_TOKEN}"] |