aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml13
1 files changed, 9 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 35536bd9a1..cef01ede78 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -39,13 +39,18 @@ jobs:
- name: Configure Build
uses: actions/github-script@v7
id: determine
+ env:
+ REF_NAME: "${{ github.ref_name }}"
+ REF_TYPE: "${{ github.ref_type }}"
+ EVENT: "${{ toJSON(github.event) }}"
+ EVENT_TYPE: "${{ github.event_name }}"
with:
script: |
const {owner, repo} = context.repo;
- const event_name = "${{ github.event_name }}";
- const event = ${{ toJSON(github.event) }};
- const ref_type = "${{ github.ref_type }}";
- const ref_name = "${{ github.ref_name }}";
+ const event_name = `${process.env.EVENT_TYPE}`;
+ const event = JSON.parse(`${process.env.EVENT}`);
+ const ref_type = `${process.env.REF_TYPE}`;
+ const ref_name = `${process.env.REF_NAME}`;
const result = {
action: "build"
};