Skip to content

[Growth] Angel User Outreach Strategy (Targeting, Outreach Paths, Conversion Funnel) #402

[Growth] Angel User Outreach Strategy (Targeting, Outreach Paths, Conversion Funnel)

[Growth] Angel User Outreach Strategy (Targeting, Outreach Paths, Conversion Funnel) #402

name: Feishu Issue Notification
on:
issues:
types: [opened]
permissions:
contents: read
jobs:
notify:
name: Notify Feishu
runs-on: ubuntu-latest
steps:
- name: Create GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.NEXU_PAL_APP_ID }}
private-key: ${{ secrets.NEXU_PAL_PRIVATE_KEY_PEM }}
- uses: actions/checkout@v4
with:
sparse-checkout: scripts
- name: Send Feishu notification
env:
WEBHOOK_URL: ${{ secrets.NOTIFY_ISSUE_FEISHU_WEBHOOK }}
EVENT_TYPE: issue
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
TITLE: ${{ github.event.issue.title }}
URL: ${{ github.event.issue.html_url }}
NUMBER: ${{ github.event.issue.number }}
AUTHOR: ${{ github.event.issue.user.login }}
BODY: ${{ github.event.issue.body }}
LABELS_OR_CATEGORY: ${{ join(github.event.issue.labels.*.name, ', ') }}
REPO: ${{ github.repository }}
run: node scripts/notify/feishu-notify.mjs