diff --git a/.github/workflows/conversion-request.yml b/.github/workflows/conversion-request.yml index 9d0b5d1..5b0b5b5 100644 --- a/.github/workflows/conversion-request.yml +++ b/.github/workflows/conversion-request.yml @@ -118,10 +118,38 @@ jobs: - Upload the resource pack `geyser_resources.mcpack` to the `packs` folder of your Geyser folder. :file_folder: - Upload the mappings file `geyser_mappings.json` to the `custom_mappings` folder of your Geyser folder. :page_with_curl: - If you notice issues with the converted files, please refer to the action log for errors and open a bud report if you believe there is an issue with the converter. + If you notice issues with the converted files, please refer to the action log for errors and open a bug report if you believe there is an issue with the converter. This issue will be closed automatically. [1]: https://github.com/Kas-tle/java2bedrock.sh/actions/runs/${{ github.run_id}} reactions: 'rocket' + - name: Close Issue + 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] + if: always() && (needs.get-pack-info.result == 'failure' || needs.convert-pack.result == 'failure' || needs.convert-pack.result == 'post-result') + permissions: + issues: write + steps: + - name: Post Result + id: post-result + uses: peter-evans/create-or-update-comment@v2 + with: + issue-number: ${{ github.event.issue.number }} + body: | + :stop_sign: The run has failed :stop_sign: + - Check the [action run][1] page for errors. :clipboard: + - Status by job: + - Get Pack Info: *${{ needs.get-pack-info.result }}* + - 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. + + [1]: https://github.com/Kas-tle/java2bedrock.sh/actions/runs/${{ github.run_id}} + reactions: 'x' - name: Close Issue uses: peter-evans/close-issue@v2 with: