mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Create an issue
|
|
description: Create an issue
|
|
|
|
inputs:
|
|
title:
|
|
description: Issue title
|
|
required: true
|
|
body:
|
|
description: Issue body
|
|
required: true
|
|
labels:
|
|
description: Comma-separated list of labels
|
|
required: true
|
|
default: "bug"
|
|
assignees:
|
|
description: Comma-separated list of assignees
|
|
required: true
|
|
default: "godexsoft,kuznetsss,PeterChen13579,mathbunnyru"
|
|
|
|
outputs:
|
|
created_issue_id:
|
|
description: Created issue id
|
|
value: ${{ steps.create_issue.outputs.created_issue }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Create an issue
|
|
id: create_issue
|
|
shell: bash
|
|
env:
|
|
ISSUE_BODY: ${{ inputs.body }}
|
|
ISSUE_ASSIGNEES: ${{ inputs.assignees }}
|
|
ISSUE_LABELS: ${{ inputs.labels }}
|
|
ISSUE_TITLE: ${{ inputs.title }}
|
|
run: |
|
|
echo -e "${ISSUE_BODY}" > issue.md
|
|
gh issue create \
|
|
--assignee "${ISSUE_ASSIGNEES}" \
|
|
--label "${ISSUE_LABELS}" \
|
|
--title "${ISSUE_TITLE}" \
|
|
--body-file ./issue.md \
|
|
> create_issue.log
|
|
created_issue="$(sed 's|.*/||' create_issue.log)"
|
|
echo "created_issue=$created_issue" >> $GITHUB_OUTPUT
|
|
rm create_issue.log issue.md
|