generated from yi-Xu-0100/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 3
95 lines (85 loc) · 3.54 KB
/
test.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: 'test'
on:
push:
branches:
- main
workflow_dispatch:
pull_request_target:
types: [labeled]
jobs:
run:
name: Repo list generator
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get Repo List for user and GITHUB_TOKEN
id: repo
uses: ./
with:
block_list: 'test'
- name: Echo Output for user and GITHUB_TOKEN
run: |
echo repo: ${{steps.repo.outputs.repo}}
echo repoList: ${{steps.repo.outputs.repoList}}
echo repoList_ALL: ${{steps.repo.outputs.repoList_ALL}}
echo repoList_PRIVATE: ${{steps.repo.outputs.repoList_PRIVATE}}
echo repoList_FORK: ${{steps.repo.outputs.repoList_FORK}}
echo privateList: ${{steps.repo.outputs.privateList}}
echo forkList: ${{steps.repo.outputs.forkList}}
echo emptyList: ${{steps.repo.outputs.emptyList}}
echo archivedList: ${{steps.repo.outputs.archivedList}}
- name: Get Repo List for user and REPO_TOKEN
id: repo1
uses: ./
with:
my_token: ${{ secrets.REPO_TOKEN }}
block_list: 'test'
- name: Echo Output for user and REPO_TOKEN
run: |
echo repo: ${{steps.repo1.outputs.repo}}
echo repoList: ${{steps.repo1.outputs.repoList}}
echo repoList_ALL: ${{steps.repo1.outputs.repoList_ALL}}
echo repoList_PRIVATE: ${{steps.repo1.outputs.repoList_PRIVATE}}
echo repoList_FORK: ${{steps.repo1.outputs.repoList_FORK}}
echo privateList: ${{steps.repo1.outputs.privateList}}
echo forkList: ${{steps.repo1.outputs.forkList}}
echo emptyList: ${{steps.repo.outputs.emptyList}}
echo archivedList: ${{steps.repo.outputs.archivedList}}
- name: Get Repo List for organization with GITHUB_TOKEN
id: repo2
uses: ./
with:
user: yi-xu-test-organization
block_list: 'test-repo'
- name: Echo Output for organization with GITHUB_TOKEN
run: |
echo repo: ${{steps.repo2.outputs.repo}}
echo repoList: ${{steps.repo2.outputs.repoList}}
echo repoList_ALL: ${{steps.repo2.outputs.repoList_ALL}}
echo repoList_PRIVATE: ${{steps.repo2.outputs.repoList_PRIVATE}}
echo repoList_FORK: ${{steps.repo2.outputs.repoList_FORK}}
echo privateList: ${{steps.repo2.outputs.privateList}}
echo forkList: ${{steps.repo2.outputs.forkList}}
echo emptyList: ${{steps.repo.outputs.emptyList}}
echo archivedList: ${{steps.repo.outputs.archivedList}}
- name: Get Repo List for organization and REPO_TOKEN
id: repo3
uses: ./
with:
my_token: ${{ secrets.REPO_TOKEN }}
user: yi-xu-test-organization
block_list: 'test-repo'
- name: Echo Output for organization and REPO_TOKEN
run: |
echo repo: ${{steps.repo3.outputs.repo}}
echo repoList: ${{steps.repo3.outputs.repoList}}
echo repoList_ALL: ${{steps.repo3.outputs.repoList_ALL}}
echo repoList_PRIVATE: ${{steps.repo3.outputs.repoList_PRIVATE}}
echo repoList_FORK: ${{steps.repo3.outputs.repoList_FORK}}
echo privateList: ${{steps.repo3.outputs.privateList}}
echo forkList: ${{steps.repo3.outputs.forkList}}
echo emptyList: ${{steps.repo.outputs.emptyList}}
echo archivedList: ${{steps.repo.outputs.archivedList}}