This GitHub Action allows you to close a milestone with the given title.
- title (required): The title of the milestone to be closed.
- number: The number of the recently closed milestone.
name: Close Milestone
on:
push:
branches:
- main
jobs:
close-milestone:
runs-on: ubuntu-latest
steps:
- name: Checkout do repositório
uses: actions/checkout@v2
- name: close milestone
id: close_milestone
uses: romariomelo/github-action-close-milestone@v1
with:
title: 'v1.0'
- name: Message
run: echo "The closed milestone is number ${{ steps.close_milestone.outputs.number }}"
In this example, the workflow is triggered on a push to the main branch. The Close Milestone action is used to close a milestone with the title "v1.0". The number of the closed milestone is then retrieved from the action's output, and it is printed as a message in the console.