Skip to content

Commit c9dffe6

Browse files
committed
re add slack notification
1 parent 5cd08cb commit c9dffe6

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

.github/workflows/publish.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -95,40 +95,40 @@ jobs:
9595
env:
9696
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9797

98-
# notify-community:
99-
# needs: [create-release]
100-
# runs-on: ubuntu-latest
101-
# steps:
102-
# - name: Checkout
103-
# uses: actions/checkout@v2
104-
# - name: Get version from tag
105-
# id: tag_name
106-
# run: |
107-
# echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
108-
# - name: Post to the community Slack channel
109-
# uses: slackapi/[email protected]
110-
# with:
111-
# channel-id: 'C04KT9JNRHS'
112-
# payload: |
113-
# {
114-
# "text": "[Release] Baselime Lambda Opentelemetry for Node.JS v${{ steps.tag_name.outputs.current_version }}",
115-
# "blocks": [
116-
# {
117-
# "type": "section",
118-
# "text": {
119-
# "type": "mrkdwn",
120-
# "text": "*[Release] Baselime Lambda Opentelemetry for Node.JS v${{ steps.tag_name.outputs.current_version }}*"
121-
# }
122-
# },
123-
# {
124-
# "type": "section",
125-
# "text": {
126-
# "type": "mrkdwn",
127-
# "text": "<https://github.com/Baselime/lambda-node-opentelemetry/releases/tag/v${{ steps.tag_name.outputs.current_version }}|https://github.com/Baselime/lambda-node-opentelemetry/releases/tag/v${{ steps.tag_name.outputs.current_version }}>"
128-
# }
129-
# }
130-
# ]
131-
# }
132-
# env:
133-
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
98+
notify-community:
99+
needs: [create-release]
100+
runs-on: ubuntu-latest
101+
steps:
102+
- name: Checkout
103+
uses: actions/checkout@v2
104+
- name: Get version from tag
105+
id: tag_name
106+
run: |
107+
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
108+
- name: Post to the community Slack channel
109+
uses: slackapi/[email protected]
110+
with:
111+
channel-id: 'C04KT9JNRHS'
112+
payload: |
113+
{
114+
"text": "[Release] Baselime Lambda Opentelemetry for Node.JS v${{ steps.tag_name.outputs.current_version }}",
115+
"blocks": [
116+
{
117+
"type": "section",
118+
"text": {
119+
"type": "mrkdwn",
120+
"text": "*[Release] Baselime Lambda Opentelemetry for Node.JS v${{ steps.tag_name.outputs.current_version }}*"
121+
}
122+
},
123+
{
124+
"type": "section",
125+
"text": {
126+
"type": "mrkdwn",
127+
"text": "<https://github.com/Baselime/lambda-node-opentelemetry/releases/tag/v${{ steps.tag_name.outputs.current_version }}|https://github.com/Baselime/lambda-node-opentelemetry/releases/tag/v${{ steps.tag_name.outputs.current_version }}>"
128+
}
129+
}
130+
]
131+
}
132+
env:
133+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
134134

src/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function loadSync(taskRoot: string, originalHandler: string) {
4444
const functionName = pathDetails.ext.slice(1);
4545

4646
const functionPath = path.resolve(taskRoot, pathDetails.dir, pathDetails.name);
47-
console.log(functionPath)
47+
4848
const lambda =_tryRequire(functionPath + '.js') || _tryRequire(functionPath + '.cjs')
4949

5050
if (!lambda) {

0 commit comments

Comments
 (0)