33 lines
679 B
YAML
33 lines
679 B
YAML
name: Finder
|
|
on:
|
|
schedule:
|
|
- cron: "0 */8 * * *"
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
find:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
name: Checkout code
|
|
with:
|
|
ref: main
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: "^1.22"
|
|
cache: true
|
|
- run: go run main.go
|
|
- name: Upload
|
|
run: |
|
|
if ! git diff-index --quiet HEAD --; then
|
|
git config user.name "Minecraft Server Maneger"
|
|
git config user.email "bds@sirherobrine23.org"
|
|
git add .
|
|
git commit -m "Add new version"
|
|
git push
|
|
fi |