Skip to content

Mineplex Studio Map Rotation Action

Actions
Rotate a specified number of maps for Mineplex Studio projects.
v1
Latest
Star (1)

Mineplex Studio Map Rotation Action

This GitHub Action allows you to rotate maps in the active pool for Mineplex Studio. It enables you to swap a specified number of maps in the active pool, automating the process through a simple GitHub Action.

Inputs

count (required)

  • Description: The number of maps to swap in the active pool.
  • Type: number
  • Default: 1
  • Required: true

Outputs

changelog

  • Description: The commit message generated after rotating the maps.
  • Type: string

Usage

Example Workflow

name: Mineplex Studio Map Rotation Action
on:
  schedule:
    - cron: '0 0 * * 0'  # Runs every 2 weeks on Sunday at midnight (UTC)

jobs:
  swap-maps:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Rotate maps
        id: swap_maps
        uses: BillyDotWS/map-rotations@v1
        with:
          count: 12

      # for this you need to enable pull requests from actions: https://i.imgur.com/Ciop0Oe.png
      - name: Create a pull request
        uses: peter-evans/create-pull-request@v3
        with:
          title: "feature: rotate the current map pool"
          body: "${{ steps.swap_maps.outputs.changelog }}"
          base: master
          branch: "update-maps-${{ github.run_id }}"

Mineplex Studio Map Rotation Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Rotate a specified number of maps for Mineplex Studio projects.
v1
Latest

Mineplex Studio Map Rotation Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.