Skip to content

Merge pull request #88 from dtinit/lisad-no-ampersand #23

Merge pull request #88 from dtinit/lisad-no-ampersand

Merge pull request #88 from dtinit/lisad-no-ampersand #23

name: Notify Portmap
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
validate-articles:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run sanity check
run: |
chmod +x sanity_check.sh
./sanity_check.sh
notify-portmap:
runs-on: ubuntu-latest
needs: validate-articles # This ensures the notify-portmap job only runs if validate-articles passes
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.ORG_APP_ID }}
private-key: ${{ secrets.ORG_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Send repository_dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.app-token.outputs.token }}
repository: dtinit/portmap
event-type: content_update