Skip to content

Commit

Permalink
Add maintenance branch support
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya-de committed Mar 20, 2023
1 parent c3982a3 commit b52ed5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/stable.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Stable Branch Workflow
on:
push:
branches:
- stable
branches: [ "[0-9]+.x", "stable" ]
workflow_dispatch: ~
pull_request:
branches: [ "[0-9]+.x", "stable" ]
types: [ opened, synchronize, reopened ]

jobs:
test:
Expand Down Expand Up @@ -32,8 +35,10 @@ jobs:

- name: Run phpmd
run: php vendor/bin/phpmd src/Makaira/ text codesize,design

release:
name: Create a new release
if: github.event_name != 'pull_request'
needs: test
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branches": ["stable"],
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "stable"],
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",
Expand Down

0 comments on commit b52ed5a

Please sign in to comment.