-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.16 KB
/
duplicate_issue.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Duplicate Issue to Dev Dashboard
on:
push:
branches:
- fix-issue
jobs:
duplicate_issue:
name: duplicate_issue
runs-on: ubuntu-latest
steps:
- name: Prepare Title and Body
id: issue-params
run: |
set -o xtrace
cat > issue.md<<- 'EOM'
-$(echo Mooo)
---
This issue is related to public issue:
* https://github.com/chain4travel/camino-public-issues/issues/${{ github.event.issue.number }}
EOM
ISSUE_BODY=$(cat issue.md)
cat > title.md<<- 'EOM'
title-mo
EOM
export TITLE=$(cat title.md)
export BODY=${ISSUE_BODY//['"']/'\"'}
echo "issue_title<<EOM" >> $GITHUB_OUTPUT
echo "$TITLE" >> $GITHUB_OUTPUT
echo "EOM" >> $GITHUB_OUTPUT
echo "issue_body<<EOM" >> $GITHUB_OUTPUT
echo "DonnnnEEE"
echo "$BODY" >> $GITHUB_OUTPUT
echo "EOM" >> $GITHUB_OUTPUT
echo "$BODY"
echo "$TITLE"
- name: Create Private Issue
run: |
echo "${{ steps.issue-params.outputs.issue_title }}"
echo "${{ steps.issue-params.outputs.issue_body }}"