-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
30 lines (27 loc) · 882 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "Markdown to JSON Converter"
description: "A GitHub Action to convert a Markdown changelog file to a JSON file."
author: "Alok Vishwakarma [email protected]"
inputs:
markdown_file:
description: "The path to the Markdown file to convert"
required: true
default: "changelog.md"
output_file:
description: "The path where the JSON output should be saved"
required: false
default: "changelog.json"
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install markdown
shell: bash
- name: Run the conversion script
run: python $GITHUB_ACTION_PATH/changelog_parser.py ${{ inputs.markdown_file }} ${{ inputs.output_file }}
shell: bash