Skip to content

Merge pull request #26 from peterbe/25-use-node20-instead-of-node-16 #50

Merge pull request #26 from peterbe/25-use-node20-instead-of-node-16

Merge pull request #26 from peterbe/25-use-node20-instead-of-node-16 #50

Workflow file for this run

name: Test
on:
push:
paths:
- index.dist.js
jobs:
run:
runs-on: ubuntu-latest
env:
SLACK_CHANNEL: G019R925BQA
SHOW_DEBUG: true
THROW_ERR: true
steps:
- uses: actions/checkout@v3
- name: someimportantcompany/github-actions-slack-message@master
uses: ./
with:
channel: ${{ env.SLACK_CHANNEL }}
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
text: Firing a bot-token message
- name: someimportantcompany/github-actions-slack-message@master
uses: ./
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
text: Firing a webhook message
- run: sleep 3s
- name: someimportantcompany/github-actions-slack-message@master
uses: ./
id: slack
with:
channel: ${{ env.SLACK_CHANNEL }}
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
text: Deployment started
color: grey
- run: sleep 5s
- name: someimportantcompany/github-actions-slack-message@master
uses: ./
with:
channel: ${{ env.SLACK_CHANNEL }}
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
text: Deployment finished
color: '#28a745'
message-id: ${{ steps.slack.outputs.message-id }}