Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active May 3, 2023 02:01
Show Gist options
  • Select an option

  • Save KyMidd/51cd3c2d54d901bd928e423765bcdf40 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/51cd3c2d54d901bd928e423765bcdf40 to your computer and use it in GitHub Desktop.
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