From 0a6aed2a9b55791d4baefb43b79526bbae0f0268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Mon, 14 Oct 2024 12:05:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20act-event-file.json=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=B9=B6=E6=9B=B4=E6=96=B0=20install-act.sh?= =?UTF-8?q?=20=E4=BB=A5=E4=BD=BF=E7=94=A8=E4=BA=8B=E4=BB=B6=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- act-event-file.json | 3 +++ install-act.sh | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 act-event-file.json diff --git a/act-event-file.json b/act-event-file.json new file mode 100644 index 0000000..f23a074 --- /dev/null +++ b/act-event-file.json @@ -0,0 +1,3 @@ +{ + "ref": "refs/tags/this-is-a-tag" +} \ No newline at end of file diff --git a/install-act.sh b/install-act.sh index 66e56b3..eb6c882 100644 --- a/install-act.sh +++ b/install-act.sh @@ -32,4 +32,7 @@ act --artifact-server-path /tmp/artifacts act -v # ########################################################## -act --pull=false --container-architecture linux/amd64 -P ubuntu-latest=catthehacker/ubuntu:act-latest --secret-file my.secrets \ No newline at end of file +act --pull=false --container-architecture linux/amd64 -P ubuntu-latest=catthehacker/ubuntu:act-latest --secret-file my.secrets + +# https://nektosact.com/usage/index.html#using-event-file-to-provide-complete-event-payload +act --eventpath act-event-file.json \ No newline at end of file