Skip to content

Commit

Permalink
updates CI ci:debug
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Jun 21, 2024
1 parent 2e43e8f commit fb71ff3
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 1 deletion.
92 changes: 92 additions & 0 deletions .github/workflows/dump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: "[DEBUG] Dump"

on:
check_run:
create:
delete:
discussion:
discussion_comment:
fork:
issues:
issue_comment:
milestone:
pull_request:
pull_request_review_comment:
pull_request_review:
push:
release:
workflow_dispatch:


jobs:
dump:
name: "[DEBUG] Echo Full Context"
if: ${{ contains(github.event.head_commit.message, 'ci:debug') }}
runs-on: [ubuntu-latest, self-hosted]
steps:
- name: Inspect
run: |
echo "${{ contains('refs/heads/develop\nrefs/heads/staging\nrefs/heads/master\nrefs/heads/release', github.ref) }}
echo "${{ contains('refs/heads/develop\nrefs/heads/staging\nrefs/heads/master\nrefs/heads/release', github.ref) }}
- name: Dump Env vars
run: |
echo "====== ENVIRONMENT ================="
env | sort
echo "===================================="
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: |
echo "====== GITHUB_CONTEXT =============="
echo "$GITHUB_CONTEXT"
echo "===================================="
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJSON(job) }}
run: |
echo "====== JOB_CONTEXT =============="
echo "$JOB_CONTEXT"
echo "===================================="
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJSON(steps) }}
run: |
echo "====== STEPS_CONTEXT =============="
echo "$STEPS_CONTEXT"
echo "===================================="
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJSON(runner) }}
run: |
echo "====== RUNNER_CONTEXT =============="
echo "$RUNNER_CONTEXT"
echo "===================================="
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJSON(strategy) }}
run: |
echo "====== STRATEGY_CONTEXT =============="
echo "$STRATEGY_CONTEXT"
echo "===================================="
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJSON(matrix) }}
run: |
echo "====== MATRIX_CONTEXT =============="
echo "$MATRIX_CONTEXT"
echo "===================================="
- name: Dump vars context
env:
VARS_CONTEXT: ${{ toJSON(vars) }}
run: |
echo "====== VARS =============="
echo "$VARS_CONTEXT"
echo "===================================="
- name: Dump env context
env:
ENV_CONTEXT: ${{ toJSON(env) }}
run: |
echo "====== ENV =============="
echo "$ENV_CONTEXT"
echo "===================================="
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:
refs/heads/develop
refs/heads/staging
refs/heads/master
refs/heads/release/
refs/heads/release
', github.ref) || contains(github.event.head_commit.message, 'ci:release') || github.event_name == 'create'

name: "Release Docker"
Expand Down

0 comments on commit fb71ff3

Please sign in to comment.