diff options
author | Bjarne Koll <[email protected]> | 2024-05-28 14:19:31 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-28 14:19:31 +0200 |
commit | 9c917fef08358a8c68e82c04abe0fe0ca707bec1 (patch) | |
tree | e012918e73e44c63e97b395f21a92982ec66a065 /.github/workflows/build.yml | |
parent | b0c9b9c4d875cb191e552dc7f410cd34c7d9fdcb (diff) | |
download | Paper-9c917fef08358a8c68e82c04abe0fe0ca707bec1.tar.gz Paper-9c917fef08358a8c68e82c04abe0fe0ca707bec1.zip |
[ci skip] Clean up paperclip build-pr workflow (#10802)
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 13 |
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" }; |