Files
BedrockFetch/.github/workflows/fetch.yaml
Matheus Sampaio Queiroga db1cad0084
Some checks failed
Find and Upload Minecraft Server versions / build (push) Has been cancelled
add -check
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2025-03-03 00:28:34 -03:00

33 lines
787 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 ${{ github.event_name == 'workflow_dispatch' && '-check' }}
env:
GH_TOKEN: ${{ github.token }}
- name: Upload versions
run: |
git config user.name "Minecraft Server Maneger"
git config user.email "bds@sirherobrine23.com.br"
git add . && git commit -m "Add new version" && git push || echo "no change"