Merge branch 'main' into main #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Send advisory | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
inputs: | |
advisory_url: | |
type: string | |
env: # sendgrid api token | |
sendgrid_api: ${{ secrets.SENDGRID_API }} | |
jobs: | |
send-modified-files: | |
name: Send advisory files added today, or send advisory from input url | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout docs | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: 'pip' # caching pip dependencies | |
- name: install mkdocs | |
run: pip install -r requirements.txt | |
- name: Send advisories | |
run: ./.github/scripts/send-advisory.py "${{ inputs.advisory_url }}" |