-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (40 loc) · 1.23 KB
/
test.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Test
on:
workflow_dispatch:
inputs:
dry-run:
type: boolean
description: 'Dry run'
required: false
default: false
discord-url:
type: string
description: 'Discord Webhook URL'
required: false
slack-url:
type: string
description: 'Slack Webhook URL'
required: false
teams-url:
type: string
description: 'Teams Webhook URL'
required: false
jobs:
test:
name: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Testing Action
uses: ./
with:
dry-run: ${{ github.event.inputs.dry-run }}
discord-url: ${{ github.event.inputs.discord-url }}
teams-url: ${{ github.event.inputs.teams-url }}
slack-url: ${{ github.event.inputs.slack-url }}
color: 'info'
title: 'Test - Successful'
text: 'Test successfully ran'
fields: '[{"name": "status", "value": "success"}, {"name": "triggered by", "value": "${{ github.event.sender.login }}"}]'
buttons: '[{"label": "View Run", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"}]'