[Register add-on in translation system]: customNotifications #65
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: 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. |