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.
- Description: The number of maps to swap in the active pool.
- Type:
number
- Default:
1
- Required:
true
- Description: The commit message generated after rotating the maps.
- Type:
string
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 }}"