-
Notifications
You must be signed in to change notification settings - Fork 0
/
test9.yml
29 lines (27 loc) · 815 Bytes
/
test9.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Test for self-runner
on: [push]
jobs:
build:
#runs-on: ubuntu-latest
runs-on: [my_runner]
steps:
- run: echo "The ${{ github.repository }} repository will be cloned to the runner."
- uses: actions/checkout@v1
- name: Run a one-line script
run: ls -lar
- name: Display hostname
run: hostname -a
slack:
name: Slack Notification
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: integration
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://github.com/rtCamp.png?size=48
SLACK_MESSAGE: 'Post Content :rocket:'
SLACK_TITLE: 'Looks like job is done :)'
SLACK_USERNAME: pluhin
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}