-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: github actions の workflow を更新 (#4426)
* chore: github actions の workflow を更新 * chore: slack に送るメッセージを変更
- Loading branch information
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
with: | ||
ref: release-candidate | ||
fetch-depth: 0 | ||
- uses: pnpm/action-setup@v2 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- uses: actions/setup-node@v4 | ||
|
@@ -62,8 +62,18 @@ jobs: | |
run: | | ||
git checkout master | ||
git cherry-pick $NEW_TAG | ||
- name: craete pull request | ||
- name: create pull request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
title: 'chore(release): ${{ env.NEW_TAG }}' | ||
branch: 'merge-release-${{ env.NEW_TAG }}' | ||
labels: release candidate | ||
- name: Send message to Slack | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"text": "<!subteam^S01RJL6PHJ8> npm publish が完了しました。Release Pull Request を手動でマージしたらリリース完了です。" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ on: | |
manual_preparation: | ||
type: boolean | ||
description: '前リリースタグとの合流を手動で行う' | ||
repository_dispatch: | ||
types: [remote_dispatch] | ||
|
||
jobs: | ||
start_release: | ||
|
@@ -21,7 +23,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: pnpm/action-setup@v2 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- uses: actions/setup-node@v4 | ||
|
@@ -66,3 +68,11 @@ jobs: | |
title: Release candidate | ||
content-filepath: ${{ env.RESULT_PATH }} | ||
labels: ${{ env.ISSUE_LABELS }} | ||
- name: Send GitHub Action trigger data to Slack | ||
if: ${{ github.event.client_payload.channel_id != null }} | ||
uses: slackapi/[email protected] | ||
with: | ||
channel-id: ${{ github.event.client_payload.channel_id }} | ||
payload: ${{ github.event.client_payload.say }} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |