mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 12:59:06 +08:00
Debug dumping GitHub Context
This commit is contained in:
parent
d4c5391540
commit
e37b49ae7a
11
.github/workflows/artifact-tests.yml
vendored
11
.github/workflows/artifact-tests.yml
vendored
@ -31,11 +31,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|
||||||
|
- name: Dump GitHub context
|
||||||
|
env:
|
||||||
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
|
run: echo "$GITHUB_CONTEXT"
|
||||||
|
|
||||||
# In order to upload & download artifacts from a shell script, certain env variables need to be set that are only available in the
|
# In order to upload & download artifacts from a shell script, certain env variables need to be set that are only available in the
|
||||||
# node context. This runs a local action that gets and sets the necessary env variables that are needed
|
# node context. This runs a local action that gets and sets the necessary env variables that are needed
|
||||||
- name: Set env variables
|
- name: Set env variables
|
||||||
uses: ./packages/artifact/__tests__/ci-test-action/
|
uses: ./packages/artifact/__tests__/ci-test-action/
|
||||||
|
|
||||||
|
- name: Dump GitHub context again
|
||||||
|
env:
|
||||||
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
|
run: echo "$GITHUB_CONTEXT"
|
||||||
|
|
||||||
|
|
||||||
# Need root node_modules because certain npm packages like jest are configured for the entire repository and it won't be possible
|
# Need root node_modules because certain npm packages like jest are configured for the entire repository and it won't be possible
|
||||||
# without these to just compile the artifacts package
|
# without these to just compile the artifacts package
|
||||||
- name: Install root npm packages
|
- name: Install root npm packages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user