Skip to content

Commit a8ac9e1

Browse files
authored
Meta: Debug publish-pr.yml
1 parent c284164 commit a8ac9e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish-pr.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
with:
2626
script: |
2727
const { owner, repo } = context.repo;
28+
const getKeys = (obj, until = Object.prototype) => {
29+
if (!obj || obj === until) return [];
30+
const ownKeys = Reflect.ownKeys(obj);
31+
const protoKeys = getKeys(Object.getPrototypeOf(obj), until);
32+
return new Set([...ownKeys, ...protoKeys]);
33+
};
34+
console.log('github', [...getKeys(github)]);
35+
console.log('github.actions', [...getKeys(github.actions)]);
2836
const { total_count, artifacts } = await github.actions.listWorkflowRunArtifacts({
2937
owner,
3038
repo,

0 commit comments

Comments
 (0)