-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (58 loc) · 1.91 KB
/
list-repos.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
name: Save repolist
on: push
jobs:
Repo-list:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/setup-node@v3
with:
node-version: '14'
- run: npm install -g bats
- run: bats -v
# Create raw list of ALL repos in comma delimited format
- name: Repo-List-Generator
id: repo
uses: yi-Xu-0100/repo-list-generator@v1.1.1
# Now that its saved we can use an action to replace .settings since we don't want that one in the list.
- name: Find-and-replace settings
uses: mad9000/actions-find-and-replace-string@5
id: settings
with:
source: ${{ steps.repo.outputs.repoList_PRIVATE }}
find: ".settings,"
replace: ''
- name: Write to file
uses: DamianReeves/write-file-action@master
with:
contents: ${{ steps.settings.outputs.value }}
path: current-repos.md
write-mode: overwrite
# Now that its saved replace put Bearsampp in front of aetray
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
id: gha
with:
find: "aetraymenu"
replace: ",aetraymenu"
include: current-repos.md
# Now put Bearsampp in front of .teams
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
id: gha1
with:
find: ".teams"
replace: "Bearsampp/,teams\n"
include: current-repos.md
# Now that its saved replace , with eol
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
id: gha2
with:
find: ","
replace: "\nBearsampp/"
include: current-repos.md
# Now that everything is done lets actually physically create the file.
- uses: GuillaumeFalourd/git-commit-push@main
with:
files: current-repos.md