Skip to content

#50454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

#50454

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/conversion-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
echo "ATTACHABLE_MATERIAL=$(jq -r '.attachable_material' inputs.json)" >> $GITHUB_OUTPUT
echo "ARCHIVE_SCRATCH=$(jq -r '.archive_scratch' inputs.json)" >> $GITHUB_OUTPUT
echo "RENAME_MODEL_FILES=$(jq -r '.rename_model_files' inputs.json)" >> $GITHUB_OUTPUT

convert-pack:
runs-on: ubuntu-latest
needs: get-pack-info
Expand All @@ -70,9 +71,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 17
- name: Fix APT sources and update
run: |
sudo sed -i 's|mirror+file:/etc/apt/apt-mirrors.txt|http://archive.ubuntu.com/ubuntu|' /etc/apt/sources.list
sudo apt-get clean
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get install -y moreutils zip imagemagick
sudo apt-get install -y --fix-missing moreutils zip imagemagick ghostscript
yarn global add spritesheet-js
- name: Convert Pack
id: convert-pack
Expand Down Expand Up @@ -108,6 +114,7 @@ jobs:
staging/target/geyser_mappings.json
staging/target/scratch_files.zip
staging/config.json

post-result:
runs-on: ubuntu-latest
needs: convert-pack
Expand All @@ -134,6 +141,7 @@ jobs:
uses: peter-evans/close-issue@v2
with:
issue-number: ${{ github.event.issue.number }}

conversion-failed:
runs-on: ubuntu-latest
needs: [get-pack-info, convert-pack, post-result]
Expand All @@ -155,7 +163,7 @@ jobs:
- Convert Pack: *${{ needs.convert-pack.result }}*
- Post Result: *${{ needs.post-result.result }}*

If you believe this is an issue with the converter. please open a bug report. This issue will be closed automatically.
If you believe this is an issue with the converter, please open a bug report. This issue will be closed automatically.

[1]: https://github.com/Kas-tle/java2bedrock.sh/actions/runs/${{ github.run_id}}
reactions: 'x'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ When utilizing this feature, you should also use the merge feature to combine th

### Github Actions

You may also run the converter through Github Actions in this repository by creating an issue with the [Pack Conversion](https://github.com/Kas-tle/java2bedrock.sh/issues/new?assignees=&labels=conversion&template=pack-conversion.yml&title=%5BPack%5D%3A+) template. You are only required to enter the link to the Java pack, though the options described above may also be configured. Your pack will then be queued for conversion by Github Actions. After conversion is complete, the Github Actions bot will reply to your issue with a link to download your converted pack and associated mappings file. Included in the bundle is a behavior pack and addon to view the models in single player, as well as a configuration file containing the paths to the models converted from the Java resource pack and their corresponding identifiers in the Bedrock resource pack.
You may also run the converter through Github Actions in this repository by creating an issue with the [Pack Conversion](https://github.com/SukitozTv/java2bedrock.sh/issues/new?assignees=&labels=conversion&template=pack-conversion.yml&title=%5BPack%5D%3A+) template. You are only required to enter the link to the Java pack, though the options described above may also be configured. Your pack will then be queued for conversion by Github Actions. After conversion is complete, the Github Actions bot will reply to your issue with a link to download your converted pack and associated mappings file. Included in the bundle is a behavior pack and addon to view the models in single player, as well as a configuration file containing the paths to the models converted from the Java resource pack and their corresponding identifiers in the Bedrock resource pack.

## About

Expand Down