Skip to content

Commit 86a55da

Browse files
committed
update the nightly gh action
1 parent 9a6da3a commit 86a55da

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

.github/workflows/ci-tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,24 @@ jobs:
104104
cd packages/controller/test/redis-sentinel
105105
./test-sentinel.sh
106106
107+
auto-merge:
108+
if: |
109+
always() &&
110+
github.event_name == 'pull_request'
111+
needs: [ ci ]
112+
runs-on: ubuntu-latest
113+
steps:
114+
- id: automerge
115+
name: automerge
116+
uses: "pascalgn/automerge-action@v0.15.6"
117+
env:
118+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
119+
MERGE_LABELS: "automated pr"
120+
MERGE_FILTER_AUTHOR: "github-actions"
121+
MERGE_FORKS: "false"
122+
MERGE_DELETE_BRANCH: "true"
123+
UPDATE_LABELS: "automated pr"
124+
107125
# Deploys the final package to NPM when a versioned tag was pushed
108126
deploy:
109127
needs: [ci]

.github/workflows/nightly-dev-release.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
113113
return nightlyVersion;
114114
115-
- name: Bump version and publish
115+
- name: Bump version
116116
if: steps.changes.outputs.result == 'ok'
117117
env:
118118
VERSION: ${{ steps.version.outputs.result }}
@@ -126,7 +126,26 @@ jobs:
126126
git add .
127127
git commit -m "v${VERSION}" && npx lerna version ${VERSION} --exact --ignore-scripts --no-commit-hooks --yes --amend --force-publish || npx lerna version ${VERSION} --exact --ignore-scripts --no-commit-hooks --yes --force-publish
128128
npx lerna publish from-package --yes --dist-tag dev
129-
git push
129+
130+
- name: Create Pull Request
131+
if: steps.changes.outputs.result == 'ok'
132+
id: cpr
133+
uses: peter-evans/create-pull-request@v4
134+
with:
135+
token: ${{ secrets.GITHUB_TOKEN }}
136+
commit-message: "[NIGHTLY DEV RELEASE] ${{ steps.version.outputs.result }}"
137+
committer: GitHub <noreply@github.com>
138+
author: foxriver76 <moritz.heusinger@gmail.com>
139+
signoff: false
140+
branch: nightly-release
141+
delete-branch: true
142+
title: ${{ steps.version.outputs.result }}
143+
body: |
144+
Update version by nightly dev release
145+
labels: |
146+
automated pr
147+
assignees: foxriver76
148+
draft: false
130149

131150
- name: Create Github Release
132151
if: steps.changes.outputs.result == 'ok'
@@ -154,3 +173,5 @@ jobs:
154173
sentry-cli releases new $SENTRY_VERSION
155174
sentry-cli releases set-commits $SENTRY_VERSION --auto
156175
sentry-cli releases finalize $SENTRY_VERSION
176+
177+

0 commit comments

Comments
 (0)