Milestone Create@develop #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: | |
# - Create a milestone by title, description and due date. | |
name: Milestone Create@develop | |
on: | |
workflow_dispatch: | |
inputs: | |
title: | |
required: true | |
description: 'Milestone Title' | |
description: | |
required: false | |
description: 'Milestone Description' | |
due-on: | |
required: false | |
description: 'Milestone Due Date' | |
# Fix GraphQL: Resource not accessible by integration (updatePullRequest) | |
permissions: | |
contents: write | |
jobs: | |
create-milestone: | |
runs-on: ubuntu-latest | |
name: Create Milestone | |
steps: | |
- name: Create Milestone | |
uses: hustcer/milestone-action@develop | |
with: | |
action: create | |
github-token: ${{ secrets.PAT }} | |
title: ${{ github.event.inputs.title }} | |
due-on: ${{ github.event.inputs.due-on }} | |
description: ${{ github.event.inputs.description }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |