Skip to content

Instantly share code, notes, and snippets.

@sh0seo
Created October 22, 2020 17:01
Show Gist options
  • Save sh0seo/4e9b250e2346d1c918bbd4fa4a8352f9 to your computer and use it in GitHub Desktop.
Save sh0seo/4e9b250e2346d1c918bbd4fa4a8352f9 to your computer and use it in GitHub Desktop.
name: update
on:
push:
branches: [ master ]
schedule:
- cron: '0 9 * * SUN'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.2
with:
ref: "master"
- name: go setup
uses: actions/setup-go@v2.1.2
with:
go-version: "1.13"
- name: pg driver
run: |
go get github.com/lib/pq
- name: run
run: |
go run main.go
env:
DB_HOST: ${{ secrets.DB_HOST}}
DB_PW: ${{ secrets.DB_PW}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment