Skip to content

πŸ”Œ [Action] Github Action to rotate a selected number of maps on a Mineplex studio project and create a pull request from it

Notifications You must be signed in to change notification settings

BillyDotWS/map-rotations

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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 }}"

About

πŸ”Œ [Action] Github Action to rotate a selected number of maps on a Mineplex studio project and create a pull request from it

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages