Update quickpick-dispatcher.yml to trigger on workflow_dispatch event #361
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Save repolist | |
on: push | |
jobs: | |
Repo-list: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- 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/[email protected] | |
# 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 |