Matheus Sampaio Queiroga
cc50a88525
All checks were successful
Find and Upload Minecraft Server versions / build (push) Successful in 1m28s
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
33 lines
724 B
YAML
33 lines
724 B
YAML
name: Find and Upload Minecraft Server versions
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 */6 * * *"
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
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
|
|
|
|
- name: Find and Upload
|
|
run: go run ./main.go
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
|
- name: Upload versions
|
|
run: |
|
|
git config user.name "Minecraft Server Maneger"
|
|
git config user.email "bds@sirherobrine23.org"
|
|
git add . && git commit -m "Add new version" && git push || echo "no change" |