2020-09-24 17:21:00 -04:00
|
|
|
name: Check For Stale Repositories
|
|
|
|
on:
|
2020-10-11 15:03:33 -04:00
|
|
|
workflow_dispatch:
|
2020-09-24 17:21:00 -04:00
|
|
|
schedule:
|
2021-12-15 17:34:01 -05:00
|
|
|
- cron: '0 0 * * 0'
|
2022-10-30 21:17:17 -04:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2020-09-24 17:21:00 -04:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Running test
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-16 04:01:22 -05:00
|
|
|
container: golang:latest
|
2020-09-24 17:21:00 -04:00
|
|
|
steps:
|
2022-10-17 03:18:43 -04:00
|
|
|
- uses: actions/checkout@v3
|
2020-10-05 04:59:38 -04:00
|
|
|
- name: Get dependencies
|
2021-12-16 03:57:52 -05:00
|
|
|
run: go get -v -t -d ./...
|
2020-10-05 04:59:38 -04:00
|
|
|
- name: run script
|
2022-06-10 08:28:34 -04:00
|
|
|
run: go test stale_repositories_test.go scripts.go
|
2021-12-15 17:34:01 -05:00
|
|
|
env:
|
|
|
|
OAUTH_TOKEN: ${{secrets.OAUTH_TOKEN}}
|