Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active April 17, 2023 02:22
Show Gist options
  • Save KyMidd/aa0ae6618ad20d7719ab4efd658c5c85 to your computer and use it in GitHub Desktop.
Save KyMidd/aa0ae6618ad20d7719ab4efd658c5c85 to your computer and use it in GitHub Desktop.
name: GitHub Repo Cop
on:
# Run nightly at 5a UTC / 11p CT
schedule:
- cron: "0 5 * * *"
jobs:
repo_cop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: GitHub Repo Cop
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
run: ./repoCop_getRepos.sh
# 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