Skip to content

Update duplicate_issue.yml #58

Update duplicate_issue.yml

Update duplicate_issue.yml #58

name: Duplicate Issue to Dev Dashboard
on:
push:
branches:
- fix-issue
jobs:
duplicate_issue:
name: duplicate_issue
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.ISSUES_ACTIONS_APP_ID }}
private-key: ${{ secrets.GIT_PRIVATE_ISSUES_APP_PK }}
repositories: "camino-private-issues"
- name: Generate Private Issue
run: |
cat > issue.md<<- EOM
$(env)
---
This issue is related to public issue:
EOM
ISSUE_BODY=$(cat issue.md)
cat > title.md<<- EOM
Test Title
EOM
TITLE=$(cat title.md)
BODY=${ISSUE_BODY//['"']/'\"'}
echo "$BODY"
echo "TITLE"
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}