2020-09-24 21:21:00 +00:00
|
|
|
name: Check For Stale Repositories
|
|
|
|
on:
|
2020-10-11 19:03:33 +00:00
|
|
|
workflow_dispatch:
|
2020-09-24 21:21:00 +00:00
|
|
|
schedule:
|
2021-12-15 22:34:01 +00:00
|
|
|
- cron: '0 0 * * 0'
|
2020-09-24 21:21:00 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Running test
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-15 22:34:01 +00:00
|
|
|
environment: netlify
|
2020-09-24 21:21:00 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-15 22:34:01 +00:00
|
|
|
go: ['1.15.x']
|
2020-09-24 21:21:00 +00:00
|
|
|
steps:
|
2020-10-11 19:03:33 +00:00
|
|
|
- uses: actions/checkout@1.0.0
|
2020-10-05 08:59:38 +00:00
|
|
|
- name: Get dependencies
|
|
|
|
run: |
|
|
|
|
go get -v -t -d ./...
|
|
|
|
- name: run script
|
|
|
|
run: go run test_stale_repositories.go scripts.go
|
2021-12-15 22:34:01 +00:00
|
|
|
env:
|
|
|
|
OAUTH_TOKEN: ${{secrets.OAUTH_TOKEN}}
|
|
|
|
- name: netlify awesome-go.com
|
|
|
|
uses: jsmrcaga/action-netlify-deploy@v1.1.0
|
|
|
|
if: contains('refs/heads/master', github.ref)
|
|
|
|
with:
|
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
|
|
NETLIFY_DEPLOY_TO_PROD: true
|
|
|
|
build_directory: tmpl
|