Skip to content

Commit

Permalink
chore: github actions の workflow を更新 (#4426)
Browse files Browse the repository at this point in the history
* chore: github actions の workflow を更新

* chore: slack に送るメッセージを変更
  • Loading branch information
nabeliwo authored Mar 12, 2024
1 parent 830b026 commit 9ae6941
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/publishRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
12 changes: 11 additions & 1 deletion .github/workflows/startRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
manual_preparation:
type: boolean
description: '前リリースタグとの合流を手動で行う'
repository_dispatch:
types: [remote_dispatch]

jobs:
start_release:
Expand All @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 9ae6941

Please sign in to comment.