Skip to content
calendar

GitHub Action

Milestone Schedule

v1.1 Latest version

Milestone Schedule

calendar

Milestone Schedule

Creates Issue Milestones in a GitHub repository, according to an iCalendar (RFC 5545) Recurrence schedule

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Milestone Schedule

uses: MrGossett/[email protected]

Learn more about this action in MrGossett/github-action-milestone-schedule

Choose a version

Milestone Schedule GitHub Action

This action creates Issue Milestones in a GitHub repository, according to an iCalendar (RFC 5545) Recurrence schedule.

Inputs

recurrence

Required The RFC 5545 Recurrence pattern defining a schedule of Milestone due dates.

count

Required The number of upcoming milestones that should be created each run.

format

Optional A format string as specified in Golang's time package used to determine each Milestone's title. defaults to 2006-01-02

Example usage

on:
  schedule:
    # Cron syntax has five fields separated by a space, and each field represents a unit of time.
    #
    #        ┌───────────── minute (0 - 59)
    #        │ ┌───────────── hour (0 - 23)
    #        │ │ ┌───────────── day of the month (1 - 31)
    #        │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
    #        │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
    #        │ │ │ │ │
    #        │ │ │ │ │
    #        │ │ │ │ │
    #        * * * * *
    # * is a special character in YAML so you have to quote this string
    - cron:  '0 0 * * SUN' # midnight every Sunday

jobs:
  milestones:
    runs-on: ubuntu-latest
    name: Create Milestones on a schedule
    steps:
    - name: Create Milestones
      uses: MrGossett/github-action-milestone-schedule@v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        recurrence: 'FREQ=WEEKLY;BYDAY=FR;DTSTART=20191213T220000Z'
        format: 'Done 06-Jan-02'
        count: 4

GitHub Action logs

Milestones result