Skip to content

Commit

Permalink
error on purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
cabiamdos committed Mar 29, 2024
1 parent 7c49638 commit 19b3407
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/context.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Context testing
on: push
on: [push, pull_request]

jobs:
functions:
runs-on: ubuntu-16.04
# runs-on: ubuntu-16.04
runs-on: ubuntu-latest
steps:
- name: dump
run: |
Expand All @@ -13,12 +14,15 @@ jobs:
echo ${{ format('Hello {0} {1} {2}', 'World', '!', '!')}}
dump_contexts_to_log:
runs-on: ubuntu-latest
if: github.event_name == 'push'

steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
run: eccho "$GITHUB_CONTEXT"
- name: Dump job context
if: failure()
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
Expand All @@ -27,6 +31,7 @@ jobs:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
if: always()
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
Expand Down

0 comments on commit 19b3407

Please sign in to comment.