Skip to content

Create GitHub action to publish npm package #1

Create GitHub action to publish npm package

Create GitHub action to publish npm package #1

name: Yiming's Slack test

Check failure on line 1 in .github/workflows/yiming_slack_test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/yiming_slack_test.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
notify:
runs-on: ubuntu-latest
needs: build
steps:
- name: Send success message to Slack
env:
SLACK_CHANNEL: "#serverless-onboarding-and-enablement-ops"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
if: success()
run: |
set -x
OPS_MESSAGE=":gh-check-passed: Yiming is testing Slack bot!"
curl -H "Content-type: application/json" -X POST "$SLACK_WEBHOOK" -d '{
"channel": "'"$SLACK_CHANNEL"'",
"text": "'"$OPS_MESSAGE"'"
}'