baijunyao / action-slack-notify Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I'm using the following code to get slack notifications, but get an error. Do you know what I'm doing wrong?
Code
name: Lint-check
on:
pull_request:
branches:
- development
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Front-end Dependencies
run: yarn
- name: Check Linting
run: yarn prettier --check "src/**/*.js" "functions/**/*.ts"
- name: Build Front-end
run: yarn build
- name: Build Firebase Back-end
run: |
cd functions
npm install
npm run build
- name: Notify slack
uses: baijunyao/action-slack-notify@master
if: always()
with:
channel: GTF7J72LQ
slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }}
github_context: ${{ toJson(github) }}
job_context: ${{ toJson(job) }}
Error
TypeError: Cannot read property 'author' of undefined
at /home/runner/work/_actions/baijunyao/action-slack-notify/master/lib/main.js:46:71
at Generator.next (<anonymous>)
at /home/runner/work/_actions/baijunyao/action-slack-notify/master/lib/main.js:7:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/work/_actions/baijunyao/action-slack-notify/master/lib/main.js:3:12)
at run (/home/runner/work/_actions/baijunyao/action-slack-notify/master/lib/main.js:21:12)
at Object.<anonymous> (/home/runner/work/_actions/baijunyao/action-slack-notify/master/lib/main.js:68:1)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
##[error]Cannot read property 'author' of undefined
##[error]Node run failed with exit code 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.