Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28e92a4288 | ||
|
|
a81db56e29 | ||
|
|
3da0cb3336 | ||
|
|
1ea06fd810 |
21
.github/workflows/release-branch.yml
vendored
21
.github/workflows/release-branch.yml
vendored
@@ -4,12 +4,17 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
- main
|
- main
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
|
||||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-release:
|
update-release:
|
||||||
|
if: github.ref_name == 'dev'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -38,8 +43,20 @@ jobs:
|
|||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update dev branch
|
update-dev:
|
||||||
if: steps.changesets.outputs.hasChangesets == 'false'
|
if: github.ref_name == 'main' && github.event.pull_request.merged == true && github.event.pull_request.title == '🦋 Release branch'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Update dev branch
|
||||||
|
timeout-minutes: 2
|
||||||
|
env:
|
||||||
|
HUSKY: 0
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Release to dev
|
||||||
uses: devmasx/merge-branch@master
|
uses: devmasx/merge-branch@master
|
||||||
with:
|
with:
|
||||||
type: now
|
type: now
|
||||||
|
|||||||
Reference in New Issue
Block a user