Skip to content

[Register add-on in translation system]: customNotifications #65

[Register add-on in translation system]: customNotifications

[Register add-on in translation system]: customNotifications #65

name: Check stable branch
on:
issues:
types:
- opened
- reopened
- edited
jobs:
stable-branch:
name: Check for stable branch
runs-on: ubuntu-latest
steps:
- name: Get data
id: get-data
uses: actions/github-script@v6
with:
script: |
const body = context.payload.issue.body
const name = body.split("### Add-on name")[1].split("###")[0].trim()
core.setOutput('repo', "nvdaaddons/" + name)
- name: Checkout code
uses: actions/checkout@v3
with:
repository: ${{steps.get-data.outputs.repo}}
ref: stable
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install scons markdown
sudo apt update
sudo apt install gettext
- name: Build
run: |
scons pot
- name: Comment
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.issue.number }}
body: The pot files were built from the stable branch.