Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ArchitectSMP/mc-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ChipWolf committed Apr 4, 2021
2 parents e917d7a + 614aaf8 commit 03e509d
Show file tree
Hide file tree
Showing 39 changed files with 17 additions and 2,203 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
paper:
runs-on: ubuntu-latest
env:
working-directory: ${{ github.workspace }}/base/paper/
base-directory: ${{ github.workspace }}/base/paper
run-directory: ${{ github.workspace }}/base/paper/run
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -20,16 +21,15 @@ jobs:
run: |
sudo wget -L https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq
sudo chmod +x /usr/local/bin/yq
rm -rf * && mkdir run
working-directory: ${{ env.working-directory }}
rm -rf ${{ env.base-directory }} && mkdir -p ${{ env.run-directory }}
- uses: addnab/docker-run-action@v2
continue-on-error: true
timeout-minutes: 3
with:
image: itzg/minecraft-server:latest
shell: bash
options: |
-v ${{ env.working-directory }}/run:/data
-v ${{ env.run-directory }}:/data
-v ${{ github.workspace }}/plugins/paper:/plugins
-e UID=1001 -e GID=116 -e EULA=TRUE
-e MAX_TICK_TIME=1 -e MAX_WORLD_SIZE=1
Expand All @@ -42,14 +42,14 @@ jobs:
run: |
find . -type f -exec sed -i -e '/^[ \t]*#/d; /^[[:space:]]*$/d; s/[[:blank:]]*$//' {} +
find . -type f -name "*.jar" -o -empty -delete
working-directory: ${{ env.working-directory }}
working-directory: ${{ env.base-directory }}
- name: Merge
run: |
for f in $(find * -type f); do
mkdir -p $(dirname ${{ env.working-directory }}/${f}) && touch ${{ env.working-directory }}/${f}
yq eval-all -iMPI2 'select(fileIndex == 0) * select(fileIndex == 1)' ${{ env.working-directory }}/${f} ${f}
done
working-directory: ${{ env.working-directory }}/run
for f in $(find * -type f -name "*.yml" -o -name "*.yaml" -o -name "*.txt"); do
echo $f && mkdir -p $(dirname "${{ env.base-directory }}/${f}")
yq e -MPI2 "${f}" > "${{ env.base-directory }}/${f}"
done && cp -rn * ${{ env.base-directory }} && rm -rf *
working-directory: ${{ env.run-directory }}
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,12 @@ jobs:
yq eval-all -iMPI2 'select(fileIndex == 0) * select(fileIndex == 1)' ${{ env.base-directory }}/${f} ${f}
done
working-directory: ${{ env.overlay-directory }}
- name: Create pull request
uses: peter-evans/create-pull-request@v3
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: "paper.zip"
path: base/paper
- uses: ncipollo/release-action@v1
with:
artifacts: "paper.zip"
token: ${{ secrets.GITHUB_TOKEN }}
branch: minecraft-configs
title: "chore(final): merge paper patches with base [ci-skip]"
signoff: true
committer: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
labels: minecraft/configs
body: |
Signed-off-by: Chip Wolf <[email protected]>
Empty file added base/paper/.gitkeep
Empty file.
27 changes: 0 additions & 27 deletions base/paper/bukkit.yml

This file was deleted.

5 changes: 0 additions & 5 deletions base/paper/commands.yml

This file was deleted.

237 changes: 0 additions & 237 deletions base/paper/paper.yml

This file was deleted.

46 changes: 0 additions & 46 deletions base/paper/plugins/CoreProtect/config.yml

This file was deleted.

1 change: 0 additions & 1 deletion base/paper/plugins/DiscordSRV/alerts.yml

This file was deleted.

Loading

0 comments on commit 03e509d

Please sign in to comment.