mirror of
https://github.com/apache/superset.git
synced 2024-09-12 16:49:40 -04:00
27 lines
813 B
YAML
27 lines
813 B
YAML
name: supersetbot orglabel based on author
|
|
|
|
on:
|
|
issues:
|
|
types: [created, edited]
|
|
|
|
pull_request:
|
|
types: [created, edited]
|
|
|
|
jobs:
|
|
superbot-orglabel:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Execute SupersetBot Command
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
- run: npm install -g supersetbot
|
|
- name: Execute custom Node.js script
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
# Label the issue with the appropriate org using supersetbot
|
|
# - this requires for the author to be publicly associated with their org
|
|
# - and for the org to be listed in `supersetbot/src/metadata.js`
|
|
supersetbot orglabel --issue ${{ github.event.number }} --repo ${{ github.repository }}
|