-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (42 loc) · 1.1 KB
/
checkStableBranch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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.