Skip to content

Goja Auto-updater #1327

Goja Auto-updater

Goja Auto-updater #1327

name: Goja Auto-updater
on:
schedule:
- cron: 10 12 * * *
jobs:
goja-updater:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16'
- name: Update to latest version
id: update
run: ./update_goja.sh
- name: Verify
if: env.UPDATE == env.LATEST_VERSION
run: go test ./...
- name: Commit
if: env.UPDATE == env.LATEST_VERSION
run: |
git config --global user.name 'Goja Auto-updater action'
git config --global user.email '[email protected]'
git commit -am "core(goja): bump version to $LATEST_VERSION"
git push