|
@@ -1,4 +1,4 @@
|
|
-name: pr-to-master
|
|
|
|
|
|
+name: pr-to-latest
|
|
|
|
|
|
on:
|
|
on:
|
|
push:
|
|
push:
|
|
@@ -6,28 +6,28 @@ on:
|
|
- dev
|
|
- dev
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
- pr-to-master:
|
|
|
|
|
|
+ pr-to-latest:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
if: contains(github.event.head_commit.message, 'version updates')
|
|
if: contains(github.event.head_commit.message, 'version updates')
|
|
steps:
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
with:
|
|
- ref: master
|
|
|
|
|
|
+ ref: latest
|
|
- name: git config
|
|
- name: git config
|
|
run: |
|
|
run: |
|
|
git config --global user.name "${{ github.event.pusher.name }}"
|
|
git config --global user.name "${{ github.event.pusher.name }}"
|
|
git config --global user.email "${{ github.event.pusher.email }}"
|
|
git config --global user.email "${{ github.event.pusher.email }}"
|
|
- run: git fetch origin dev
|
|
- run: git fetch origin dev
|
|
- - run: git read-tree -u --reset ${{ github.sha }}
|
|
|
|
|
|
+ - run: git merge ${{ github.sha }} --ff-only
|
|
- name: Create Pull Request
|
|
- name: Create Pull Request
|
|
uses: tauri-apps/create-pull-request@v2.8.0
|
|
uses: tauri-apps/create-pull-request@v2.8.0
|
|
with:
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
commit-message: ${{ github.event.head_commit.message }}
|
|
commit-message: ${{ github.event.head_commit.message }}
|
|
- branch: release/master
|
|
|
|
|
|
+ branch: release/latest
|
|
branch-suffix: short-commit-hash
|
|
branch-suffix: short-commit-hash
|
|
title: Publish
|
|
title: Publish
|
|
labels: "publish"
|
|
labels: "publish"
|
|
body: |
|
|
body: |
|
|
- Merging this PR will squash and push all changes to the master branch.
|
|
|
|
|
|
+ Merging this PR will squash and push all changes to the latest branch.
|
|
It will kick off the process to release and publish any packages with an incremented version number.
|
|
It will kick off the process to release and publish any packages with an incremented version number.
|