Skip to content

Commit f5420f9

Browse files
authored
Refactor CI for forked repositories - Add debug (#103)
1 parent 959c6b4 commit f5420f9

File tree

2 files changed

+75
-1
lines changed

2 files changed

+75
-1
lines changed

.github/workflows/CI.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,46 @@ env:
2323

2424
jobs:
2525
## Untrusted >>>
26+
debug-context:
27+
name: DEBUG - context
28+
runs-on: ubuntu-latest
29+
steps:
30+
- run: |
31+
echo '{'
32+
echo '"github.action": ${{ toJson(github.action) }},'
33+
echo '"github.action_path": ${{ toJson(github.action_path) }},'
34+
echo '"github.action_ref": ${{ toJson(github.action_ref) }},'
35+
echo '"github.action_repository": ${{ toJson(github.action_repository) }},'
36+
echo '"github.action_status": ${{ toJson(github.action_status) }},'
37+
echo '"github.actor": ${{ toJson(github.actor) }},'
38+
echo '"github.actor_id": ${{ toJson(github.actor_id) }},'
39+
echo '"github.base_ref": ${{ toJson(github.base_ref) }},'
40+
echo '"github.event": ${{ toJson(github.event) }},'
41+
echo '"github.event_name": ${{ toJson(github.event_name) }},'
42+
echo '"github.event_path": ${{ toJson(github.event_path) }},'
43+
echo '"github.head_ref": ${{ toJson(github.head_ref) }},'
44+
echo '"github.job": ${{ toJson(github.job) }},'
45+
echo '"github.path": ${{ toJson(github.path) }},'
46+
echo '"github.ref": ${{ toJson(github.ref) }},'
47+
echo '"github.ref_name": ${{ toJson(github.ref_name) }},'
48+
echo '"github.ref_protected": ${{ toJson(github.ref_protected) }},'
49+
echo '"github.ref_type": ${{ toJson(github.ref_type) }},'
50+
echo '"github.repository": ${{ toJson(github.repository) }},'
51+
echo '"github.repository_id": ${{ toJson(github.repository_id) }},'
52+
echo '"github.repository_owner": ${{ toJson(github.repository_owner) }},'
53+
echo '"github.repository_owner_id": ${{ toJson(github.repository_owner_id) }},'
54+
echo '"github.repositoryUrl": ${{ toJson(github.repositoryUrl) }},'
55+
echo '"github.run_id": ${{ toJson(github.run_id) }},'
56+
echo '"github.run_number": ${{ toJson(github.run_number) }},'
57+
echo '"github.run_attempt": ${{ toJson(github.run_attempt) }},'
58+
echo '"github.sha": ${{ toJson(github.sha) }},'
59+
echo '"github.triggering_actor": ${{ toJson(github.triggering_actor) }},'
60+
echo '"github.workflow": ${{ toJson(github.workflow) }},'
61+
echo '"github.workflow_ref": ${{ toJson(github.workflow_ref) }},'
62+
echo '"github.workflow_sha": ${{ toJson(github.workflow_sha) }},'
63+
echo '"github.workspace": ${{ toJson(github.workspace) }}'
64+
echo '}'
65+
2666
tests:
2767
name: UTs & FTs - PHP ${{ matrix.php-version }}
2868
runs-on: ubuntu-latest

.github/workflows/coverage-upload.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,41 @@ jobs:
2929
name: DEBUG - context
3030
runs-on: ubuntu-latest
3131
steps:
32-
- run: echo 'github event='"'"'${{ toJson(github.event) }}'"'"
32+
- run: |
33+
echo '{'
34+
echo '"github.action": ${{ toJson(github.action) }},'
35+
echo '"github.action_path": ${{ toJson(github.action_path) }},'
36+
echo '"github.action_ref": ${{ toJson(github.action_ref) }},'
37+
echo '"github.action_repository": ${{ toJson(github.action_repository) }},'
38+
echo '"github.action_status": ${{ toJson(github.action_status) }},'
39+
echo '"github.actor": ${{ toJson(github.actor) }},'
40+
echo '"github.actor_id": ${{ toJson(github.actor_id) }},'
41+
echo '"github.base_ref": ${{ toJson(github.base_ref) }},'
42+
echo '"github.event": ${{ toJson(github.event) }},'
43+
echo '"github.event_name": ${{ toJson(github.event_name) }},'
44+
echo '"github.event_path": ${{ toJson(github.event_path) }},'
45+
echo '"github.head_ref": ${{ toJson(github.head_ref) }},'
46+
echo '"github.job": ${{ toJson(github.job) }},'
47+
echo '"github.path": ${{ toJson(github.path) }},'
48+
echo '"github.ref": ${{ toJson(github.ref) }},'
49+
echo '"github.ref_name": ${{ toJson(github.ref_name) }},'
50+
echo '"github.ref_protected": ${{ toJson(github.ref_protected) }},'
51+
echo '"github.ref_type": ${{ toJson(github.ref_type) }},'
52+
echo '"github.repository": ${{ toJson(github.repository) }},'
53+
echo '"github.repository_id": ${{ toJson(github.repository_id) }},'
54+
echo '"github.repository_owner": ${{ toJson(github.repository_owner) }},'
55+
echo '"github.repository_owner_id": ${{ toJson(github.repository_owner_id) }},'
56+
echo '"github.repositoryUrl": ${{ toJson(github.repositoryUrl) }},'
57+
echo '"github.run_id": ${{ toJson(github.run_id) }},'
58+
echo '"github.run_number": ${{ toJson(github.run_number) }},'
59+
echo '"github.run_attempt": ${{ toJson(github.run_attempt) }},'
60+
echo '"github.sha": ${{ toJson(github.sha) }},'
61+
echo '"github.triggering_actor": ${{ toJson(github.triggering_actor) }},'
62+
echo '"github.workflow": ${{ toJson(github.workflow) }},'
63+
echo '"github.workflow_ref": ${{ toJson(github.workflow_ref) }},'
64+
echo '"github.workflow_sha": ${{ toJson(github.workflow_sha) }},'
65+
echo '"github.workspace": ${{ toJson(github.workspace) }}'
66+
echo '}'
3367
3468
debug-uploads:
3569
name: DEBUG - Uploaders

0 commit comments

Comments
 (0)