Skip to content

Introduction

Overview

[1] Problem: What are the context metadata.

To debug or see the contexts of any block in GitHub Actions, can use this steps to verify.

Add step in yaml like below

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

Contexts of GitHub Actions: https://docs.github.com/en/actions/learn-github-actions/contexts

Ref: StackOverflow - How to get my own github events payload json for testing github actions locally

[2] Problem: How to check the step status multiple.

Ref: https://stackoverflow.com/questions/57850553/github-actions-check-steps-status

Avoid using continue-on-error:true because it will yield the different outputs and the metadata.

Ref: https://github.com/community/community/discussions/15452

  1. CICD Process: https://docs.github.com/actions/automating-builds-and-tests/building-and-testing-nodejs-or-python?langId=py