Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6fdad98663 |
21
.github/workflows/release-branch.yml
vendored
21
.github/workflows/release-branch.yml
vendored
@@ -4,17 +4,12 @@ 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
|
||||||
@@ -43,20 +38,8 @@ jobs:
|
|||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
update-dev:
|
- name: Update dev branch
|
||||||
if: github.ref_name == 'main' && github.event.pull_request.merged == true && github.event.pull_request.title == '🦋 Release branch'
|
if: steps.changesets.outputs.hasChangesets == 'false'
|
||||||
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