Files
BedrockFetch/.github/workflows/find.yaml
Matheus Sampaio Queiroga 4108987b95
Some checks failed
Deploy / findVersion (push) Has been cancelled
Find / findVersion (push) Failing after 1m16s
Atualizar .github/workflows/find.yaml
2023-12-06 22:59:30 +00:00

58 lines
1.4 KiB
YAML

name: Find
on:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *"
push:
branches:
- main
jobs:
findVersion:
runs-on: ubuntu-latest
permissions:
id-token: write
pull-requests: write
issues: write
contents: write
env:
UPLOAD: "false"
VERSION: "0.1.0"
steps:
- uses: actions/checkout@v3
name: Checkout code
with:
persist-credentials: true
ref: main
fetch-depth: 2
submodules: true
- name: Setup Node JS
uses: actions/setup-node@v3.5.1
with:
node-version: 18.x
- name: Install Node Packages
run: npm install --no-save
- name: Find
timeout-minutes: 2
run: npm run updateVesion
env:
GITHUB_SECRET: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Create pull request to update version in main branch
- uses: peter-evans/create-pull-request@v5
name: Create Pull Request
if: env.UPLOAD == 'true'
with:
commit-message: New Minecraft bedrock server release (${{ env.VERSION }})
delete-branch: true
assignees: SirHerobrine23
reviewers: SirHerobrine23
branch: version_update_${{ env.VERSION }}
title: new release version v${{ env.VERSION }}
body: Auto update version, created with GitHub Actions
add-paths: "."