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