Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Commit 310a093

Browse files
committed
Merge branch 'main' of github.com:ArchitectSMP/mc-config
2 parents e917d7a + 614aaf8 commit 310a093

File tree

39 files changed

+16
-2203
lines changed

39 files changed

+16
-2203
lines changed

.github/workflows/generate.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
paper:
1111
runs-on: ubuntu-latest
1212
env:
13-
working-directory: ${{ github.workspace }}/base/paper/
13+
base-directory: ${{ github.workspace }}/base/paper
14+
run-directory: ${{ github.workspace }}/base/paper/run
1415
steps:
1516
- uses: actions/checkout@v2
1617
with:
@@ -20,16 +21,15 @@ jobs:
2021
run: |
2122
sudo wget -L https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq
2223
sudo chmod +x /usr/local/bin/yq
23-
rm -rf * && mkdir run
24-
working-directory: ${{ env.working-directory }}
24+
rm -rf ${{ env.base-directory }} && mkdir -p ${{ env.run-directory }}
2525
- uses: addnab/docker-run-action@v2
2626
continue-on-error: true
2727
timeout-minutes: 3
2828
with:
2929
image: itzg/minecraft-server:latest
3030
shell: bash
3131
options: |
32-
-v ${{ env.working-directory }}/run:/data
32+
-v ${{ env.run-directory }}:/data
3333
-v ${{ github.workspace }}/plugins/paper:/plugins
3434
-e UID=1001 -e GID=116 -e EULA=TRUE
3535
-e MAX_TICK_TIME=1 -e MAX_WORLD_SIZE=1
@@ -42,14 +42,14 @@ jobs:
4242
run: |
4343
find . -type f -exec sed -i -e '/^[ \t]*#/d; /^[[:space:]]*$/d; s/[[:blank:]]*$//' {} +
4444
find . -type f -name "*.jar" -o -empty -delete
45-
working-directory: ${{ env.working-directory }}
45+
working-directory: ${{ env.base-directory }}
4646
- name: Merge
4747
run: |
48-
for f in $(find * -type f); do
49-
mkdir -p $(dirname ${{ env.working-directory }}/${f}) && touch ${{ env.working-directory }}/${f}
50-
yq eval-all -iMPI2 'select(fileIndex == 0) * select(fileIndex == 1)' ${{ env.working-directory }}/${f} ${f}
51-
done
52-
working-directory: ${{ env.working-directory }}/run
48+
for f in $(find * -type f -name "*.yml" -o -name "*.yaml" -o -name "*.txt"); do
49+
echo $f && mkdir -p $(dirname "${{ env.base-directory }}/${f}")
50+
yq e -MPI2 "${f}" > "${{ env.base-directory }}/${f}"
51+
done && cp -rn * ${{ env.base-directory }} && rm -rf *
52+
working-directory: ${{ env.run-directory }}
5353
- name: Create pull request
5454
uses: peter-evans/create-pull-request@v3
5555
with:

.github/workflows/patch.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,11 @@ jobs:
2929
yq eval-all -iMPI2 'select(fileIndex == 0) * select(fileIndex == 1)' ${{ env.base-directory }}/${f} ${f}
3030
done
3131
working-directory: ${{ env.overlay-directory }}
32-
- name: Create pull request
33-
uses: peter-evans/create-pull-request@v3
32+
- name: Archive Release
33+
run: |
34+
zip -r paper.zip . && mv paper.zip ${{ github.workspace }}
35+
working-directory: ${{ env.base-directory }}
36+
- uses: ncipollo/release-action@v1
3437
with:
38+
artifacts: "paper.zip"
3539
token: ${{ secrets.GITHUB_TOKEN }}
36-
branch: minecraft-configs
37-
title: "chore(final): merge paper patches with base [ci-skip]"
38-
signoff: true
39-
committer: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
40-
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
41-
labels: minecraft/configs
42-
body: |
43-
Signed-off-by: Chip Wolf <[email protected]>

base/paper/.gitkeep

Whitespace-only changes.

base/paper/bukkit.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

base/paper/commands.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

base/paper/paper.yml

Lines changed: 0 additions & 237 deletions
This file was deleted.

base/paper/plugins/CoreProtect/config.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

base/paper/plugins/DiscordSRV/alerts.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)