Skip to content

Software Performance Best Practices SIG - Initial Meeting #31

Software Performance Best Practices SIG - Initial Meeting

Software Performance Best Practices SIG - Initial Meeting #31

Workflow file for this run

name: Add an event by submitting an issue
on:
issues:
types: [labeled]
jobs:
extract-issue-body:
if: github.event.label.name == 'add-event'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: _scripts/issue_to_event/package-lock.json
- run: |
npm install --prefix _scripts/issue_to_event
- name: Parse Issue Body
uses: peter-murray/issue-body-parser-action@v1
id: issue_body_parser
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# This is assuming that you are triggering off the issue, otherwise you will need to know the issue number
issue_id: ${{ github.event.issue.number }}
payload: yaml
- name: Append data to file
env:
DATA: ${{ steps.issue_body_parser.outputs.payload }}
run: |
node _scripts/issue_to_event/index.js "$DATA"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'Add new event - ${{ github.event.issue.title }}'
committer: GitHub <noreply@github.com>
author: ${{ github.event.issue.user.login }} <${{ github.event.issue.user.login }}@users.noreply.github.com>
branch: add-event-${{ github.event.issue.number }}
delete-branch: true
title: '[AUTO] Add event ${{ github.event.issue.title }}'