2022-04-15 00:56:07 -05:00
|
|
|
name: Update Metadata
|
2022-04-13 02:46:57 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types: [opened, edited, reopened]
|
|
|
|
pull_request:
|
|
|
|
types: [opened, edited, synchronize, reopened]
|
|
|
|
|
|
|
|
jobs:
|
2022-04-15 00:56:07 -05:00
|
|
|
update-metadata:
|
2022-04-13 02:46:57 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-15 00:56:07 -05:00
|
|
|
- name: Add labels
|
|
|
|
uses: logto-io/actions-add-labels-run-steps@v1.1.2
|
2022-04-13 02:46:57 -05:00
|
|
|
with:
|
|
|
|
title: ${{ github.event.pull_request.title || github.event.issue.title }}
|
|
|
|
github-token: ${{ github.token }}
|
|
|
|
|
2022-04-15 00:56:07 -05:00
|
|
|
- name: Add assignees
|
2022-04-13 02:46:57 -05:00
|
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
|
|
uses: actions-ecosystem/action-add-assignees@v1
|
|
|
|
with:
|
|
|
|
github_token: ${{ github.token }}
|
|
|
|
assignees: ${{ github.actor }}
|