Github Expression and Object COntext #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# refrence: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context | |
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions | |
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs | |
name: Github Expression and Object COntext | |
on: workflow_dispatch | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: github expression and object context | |
run: echo "Running tests" | |
- name: github expression and object context | |
run: echo "print git hub object ${{ToJson(github)}}" | |
- name: print the running jobs & step | |
run: echo "print the running jobs & step ${{toJson(job)}}" |