mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-21 12:34:22 +03:00
03186e4a4d
Ubuntu 24 seems to have slightly different kerning / aliasing so we'll need to update all out screenshots. In the meantime, pin to 22.
16 lines
593 B
YAML
16 lines
593 B
YAML
name: Pull Request Base Branch
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, synchronize]
|
|
jobs:
|
|
check_base_branch:
|
|
name: Check PR base branch
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
const baseBranch = context.payload.pull_request.base.ref;
|
|
if (!['develop', 'staging'].includes(baseBranch) && !baseBranch.startsWith('feat/')) {
|
|
core.setFailed(`Invalid base branch: ${baseBranch}`);
|
|
}
|