9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

[release-skip] Organize the workflow (#182)

* fix: Missing to add
* fix: Remove pull request trigger
This commit is contained in:
LittleChest
2024-02-17 23:21:29 +08:00
committed by GitHub
parent 0992e16516
commit 0cbc367884

View File

@@ -1,18 +1,8 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Leaves CI
on:
push:
branches: [ master ]
pull_request:
types: [ closed ]
branches: [ master ]
workflow_dispatch:
jobs:
@@ -62,6 +52,7 @@ jobs:
git clone git@github.com:LeavesMC/Configuration.git configuration -b Leaves
cp run/leaves.yml configuration/leaves.yml -f
cd configuration
git add leaves.yml
git commit leaves.yml -m "https://github.com/LeavesMC/Leaves/commit/$(cd .. && git rev-parse HEAD)"
git push origin HEAD:Leaves
- name: Get Release Info