Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Latest commit

 

History

History
74 lines (62 loc) · 2.61 KB

README.md

File metadata and controls

74 lines (62 loc) · 2.61 KB

PackAdvice-action

A GitHub actions that provides advice for improving Minecraft Java Edition resource pack.

Options

Name Default Description
token ${{ github.token }} The GitHub authentication token.
path . Relative path from the repository root to the pack directory.
version latest The PackAdvice version the action will use.
comment true If true, enable a result comment on the commit.
comment_repository ${{ github.repository }} If commit option is true, the full name of the target repository.
comment_sha ${{ github.sha }} or ${{ github.event.pull_request.head.sha }} If commit option is true, the commit SHA.
comment_format {body} Change the comment to any format. {body} will be replaced to output.

Examples

Standard

# `.github/workflows/packadvice.yml`
name: PackAdvice
on: [push]
jobs:
  packadvice:
    runs-on: ubuntu-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v3
      - name: Run PackAdvice
        uses: PackAdvice/actions@v1

The resource pack directory is the root. The default for path is ., So you don't need to specify it.

.github/
    workflows/
        packadvice.yml
assets/
    minecraft/
pack.mcmeta

Use pack/ as the resource pack directory

# `.github/workflows/packadvice.yml`
name: PackAdvice
on: [push]
jobs:
  packadvice:
    runs-on: ubuntu-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v3
      - name: Run PackAdvice
        uses: PackAdvice/actions@v1
        with:
          path: pack

You must specify the path setting. It uses pack/ as an example, but change it if necessary.

.github/
    workflows/
        packadvice.yml
pack/
    assets/
        minecraft/
    pack.mcmeta