forked from FerretDB/FerretDB
69 lines (58 loc) · 1.44 KB
/
debug.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
# Temporary workflow to debug GitHub Actions.
name: Debug
on:
pull_request:
types:
- labeled
- unlabeled # if GitHub Actions stuck, add and remove "not ready" label to force rebuild
- opened
- reopened
- synchronize
push:
branches:
- main
- main-*
- releases/*
tags:
- "*"
schedule:
- cron: "12 0 * * *"
# Do not run this workflow in parallel for any PR change.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
contexts:
name: Contexts
runs-on: ubuntu-22.04
timeout-minutes: 5
# comment out to enable this job
if: false
steps:
# TODO https://github.com/FerretDB/github-actions/issues/211
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: false
- name: Debug git status
run: git status
- name: Dump github context
run: echo "$GITHUB_CONTEXT"
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
- name: Dump env context
run: echo "$ENV_CONTEXT"
env:
ENV_CONTEXT: ${{ toJSON(env) }}
- name: Dump vars context
run: echo "$VARS_CONTEXT"
env:
VARS_CONTEXT: ${{ toJSON(vars) }}
- name: Dump environment variables
run: env
- name: Show current directory
run: |
pwd
ls -al