diff --git a/.github/workflows/dump.yml b/.github/workflows/dump.yml new file mode 100644 index 00000000..ca4c20ca --- /dev/null +++ b/.github/workflows/dump.yml @@ -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 "====================================" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e818e36d..5068efc1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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"