-
-
Save KyMidd/51cd3c2d54d901bd928e423765bcdf40 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| jobs: | |
| repo_cop_get_repos: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Get All Repos | |
| # If no repo specified, get all repos | |
| if: github.event.inputs.repo-to-police == '' | |
| run: | | |
| ./repoCop_getRepos.sh | |
| - name: Stage specific repo | |
| # If repo specified, stage the repo in the list | |
| if: github.event.inputs.repo-to-police != '' | |
| run: | | |
| echo "${{ github.event.inputs.repo-to-police }}" > all_repos | |
| # Action "Outputs" are unicode strings, so can't be a "list", or at least would be more complex to handle the data structure | |
| # Rather than deal with that, going to upload the binary list file, and will read in next step | |
| - name: Upload repos list | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: all-repos-${{ github.run_id }} | |
| path: all_repos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment