include-source: false # Drop file/line/col from output --- on: push jobs: build: runs-on: ubuntu-latest steps: - run: echo ${{ github.sha }} # github context - run: echo ${{ vars.foo }} # vars context - run: echo ${{ steps.foo }} # steps context --- { "jobs": [ { "type": "job", "id": "build", "name": "build", "if": { "type": 3, "expr": "success()" }, "runs-on": "ubuntu-latest", "steps": [ { "id": "__run", "if": { "type": 3, "expr": "success()" }, "run": { "type": 3, "expr": "format('echo {0}', github.sha)" } }, { "id": "__run_2", "if": { "type": 3, "expr": "success()" }, "run": { "type": 3, "expr": "format('echo {0}', vars.foo)" } }, { "id": "__run_3", "if": { "type": 3, "expr": "success()" }, "run": { "type": 3, "expr": "format('echo {0}', steps.foo)" } } ] } ] }