Skip to content

Commit

Permalink
chore: Ensure support for releases from release branches (#1126)
Browse files Browse the repository at this point in the history
* chore: Ensure support for releases from release branches

* format
  • Loading branch information
eps1lon committed Apr 12, 2022
1 parent 2b69154 commit 11fc773
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/validate.yml
Expand Up @@ -2,7 +2,9 @@ name: validate
on:
push:
branches:
- '+([0-9])?(.{+([0-9]),x}).x'
# Match SemVer major release branches
# e.g. "12.x" or "8.x"
- '[0-9]+.x'
- 'main'
- 'next'
- 'next-major'
Expand Down Expand Up @@ -58,8 +60,7 @@ jobs:
runs-on: ubuntu-latest
if:
${{ github.repository == 'testing-library/dom-testing-library' &&
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha',
github.ref) && github.event_name == 'push' }}
github.event_name == 'push' }}
steps:
- name: 馃洃 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0
Expand Down

0 comments on commit 11fc773

Please sign in to comment.