Skip to content

Commit

Permalink
ci: dump github script context
Browse files Browse the repository at this point in the history
  • Loading branch information
yxtay committed Feb 13, 2024
1 parent f6243d4 commit 7517c9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,40 @@ jobs:
name: context
runs-on: ${{ matrix.os }}
steps:
- name: Dump GitHub script context
uses: actions/github-script@v7
with:
script: console.log(context)

- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
run: echo ${GITHUB_CONTEXT}

- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "${JOB_CONTEXT}"
run: echo ${JOB_CONTEXT}

- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "${STEPS_CONTEXT}"
run: echo ${STEPS_CONTEXT}

- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "${RUNNER_CONTEXT}"
run: echo ${RUNNER_CONTEXT}

- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "${STRATEGY_CONTEXT}"
run: echo ${STRATEGY_CONTEXT}

- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "${MATRIX_CONTEXT}"
run: echo ${MATRIX_CONTEXT}

- name: Dump environment variables
run: ${{ (runner.os == 'Windows') && 'gci env:' || 'env | sort' }}
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
ENV PYTHONDONTWRITEBYTECODE=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_COMPILE=0 \
PIP_NO_INPUT=1 \
POETRY_NO_INTERACTION=1

# set up python
Expand Down

0 comments on commit 7517c9c

Please sign in to comment.