2022-07-07 15:20:30 +03:00
|
|
|
name: spaCy universe project alert
|
|
|
|
|
|
|
|
on:
|
2022-07-07 17:13:50 +03:00
|
|
|
pull_request_target:
|
2022-07-07 15:20:30 +03:00
|
|
|
paths:
|
|
|
|
- "website/meta/universe.json"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-03-27 13:44:04 +03:00
|
|
|
if: github.repository_owner == 'explosion'
|
2022-07-07 15:20:30 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Dump GitHub context
|
|
|
|
env:
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
PR_NUMBER: ${{github.event.number}}
|
|
|
|
run: |
|
|
|
|
echo "$GITHUB_CONTEXT"
|
|
|
|
|
2024-04-29 14:28:46 +03:00
|
|
|
- uses: actions/checkout@v4
|
2022-11-02 17:36:30 +03:00
|
|
|
- uses: actions/setup-python@v4
|
2022-11-08 06:46:19 +03:00
|
|
|
with:
|
|
|
|
python-version: '3.10'
|
2022-07-07 15:20:30 +03:00
|
|
|
- name: Install Bernadette app dependency and send an alert
|
|
|
|
env:
|
|
|
|
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
|
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
|
|
CHANNEL: "#alerts-universe"
|
|
|
|
run: |
|
|
|
|
pip install slack-sdk==3.17.2 aiohttp==3.8.1
|
|
|
|
echo "$CHANNEL"
|
|
|
|
python .github/spacy_universe_alert.py "$GITHUB_CONTEXT"
|