aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-10 22:59:22 +0000
committerFuwn <[email protected]>2021-05-10 22:59:22 +0000
commite79982ac31640603da14aabe0f63b2e8d9cd38ee (patch)
treeff205c3b72c01ee3bf0c0412206f59b92436e4b3
parentdocs(contributing.md): add some contribution guidelines (diff)
downloadwhirl-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).
-rw-r--r--.gitignore1
-rw-r--r--Makefile.toml15
2 files changed, 16 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index d080305..c6eac39 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@ Cargo.lock
/src/_*.*
/whirl.sqlite3
/Whirl.toml
+/.secrets
# DB Browser
/whirl.sqlite3-shm
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}"]