Skip to content

Testing for 105485b8-6b2b-4541-9fd5-7f4aa9f25607 #56

Testing for 105485b8-6b2b-4541-9fd5-7f4aa9f25607

Testing for 105485b8-6b2b-4541-9fd5-7f4aa9f25607 #56

Workflow file for this run

name: Create Pull Request
on:
issues:
types: [opened]
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Env Vars
env:
ISSUE_BODY: ${{ github.event.issue.body }}
run: |
echo CHAIN_PATH=chains/$(echo "$ISSUE_BODY" | gawk '/^(mainnet|testnet)/{printf $1;exit}') >> $GITHUB_ENV
echo FILE_NAME=$(echo "$ISSUE_BODY" | gawk '/^[^#]/{printf $1;exit}') >> $GITHUB_ENV
echo "FILE_CONTENT<<EOF" >> $GITHUB_ENV
echo "$ISSUE_BODY" | gawk '/^module.exports/,/^}/' >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Join File Path
env:
CHAIN_PATH: ${{ env.CHAIN_PATH }}
FILE_NAME: ${{ env.FILE_NAME }}
run: echo FILE_PATH=$CHAIN_PATH/$FILE_NAME.js | tr -d "\r" >> $GITHUB_ENV
- name: Create file
run: |
echo "${{ env.FILE_CONTENT }}" > ${{ env.FILE_PATH }}
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
commit-message: Add
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: ${{ github.event_name}}/${{ github.event.action }}-${{ github.event.issue.number }}
delete-branch: true
title: ${{ github.event_name}}/${{ github.event.action }}-${{ github.event.issue.number }}
body: |
Update report
- Updated with *today's* date
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
labels: |
automated pr
reviewers: |
Jared-TFL
draft: false