项目作者: Beakyn

项目描述 :
Action to get milestone data
高级语言: JavaScript
项目地址: git://github.com/Beakyn/gha-get-milestone-data.git
创建时间: 2021-01-04T17:55:19Z
项目社区:https://github.com/Beakyn/gha-get-milestone-data

开源协议:

下载


Beakyn

Get Milestone Data

Action to get milestone data

Pre-requisites

Create a workflow .yml file in your .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Inputs

repository: Github repository. Add the Github context value: github.repository. (required)

milestone: Milestone id, not title please. (required)

Outputs

data: Milestone data JSON.

Example

  1. - name: Get milestone data
  2. uses: Beakyn/gha-get-milestone-data@v1.0.1
  3. id: milestone-data
  4. env:
  5. GITHUB_TOKEN: ${{ github.token }}
  6. with:
  7. repository: ${{ github.repository }}
  8. milestone: 1
  9. - name: Debug milestone title value
  10. run: echo "Title: ${{ fromJson(steps.milestone-data.outputs.data).title }}"