Files
BedrockFetch/.github/workflows/fetch.yaml
Matheus Sampaio Queiroga 0f2865d993 Migrate to golang
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2024-04-04 00:23:10 -03:00

39 lines
847 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
- uses: actions/setup-go@v4
with:
go-version: "^1.22.1"
cache: true
- name: Find and Upload
run: go run ./main.go
env:
GH_TOKEN: ${{ github.token }}
- name: Upload to artifacts
uses: actions/upload-artifact@v3
with:
name: Versions
path: ./versions.json
- 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"
fi