0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Moved GitHub context logging to job

- this stops the entire context from being output in the env vars, so it
  cleans up the output at the top of each job
This commit is contained in:
Daniel Lockyer 2023-11-15 12:45:03 +01:00 committed by Daniel Lockyer
parent 18afd39193
commit 566f2055d0

View file

@ -12,7 +12,6 @@ on:
env:
FORCE_COLOR: 1
HEAD_COMMIT: ${{ github.sha }}
GITHUB_CONTEXT: ${{ toJson(github) }}
CACHED_DEPENDENCY_PATHS: |
${{ github.workspace }}/node_modules
${{ github.workspace }}/apps/*/node_modules
@ -43,6 +42,11 @@ jobs:
ref: ${{ env.HEAD_COMMIT }}
fetch-depth: 2
- name: Output GitHub context
run: echo "$GITHUB_CONTEXT"
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Get metadata (push)
if: github.event_name == 'push'
run: |