Skip to content

Commit e24afa4

Browse files
committed
initial commit
0 parents  commit e24afa4

File tree

10 files changed

+9915
-0
lines changed

10 files changed

+9915
-0
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
run: |
9+
npm install
10+
npm run build

.github/workflows/test.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Test Action
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
test:
8+
steps:
9+
- name: Check out repository
10+
uses: actions/checkout@v2
11+
12+
- name: Use local my-action
13+
uses: ./
14+
with:
15+
ref: fooooooo
16+
workflow-id: "534267"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2020 Ben Coleman
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Workflow Dispatch Action
2+
3+
This action triggers another GitHub Actions workflow, via the `workflow_dispatch` event
4+
5+
## Inputs
6+
7+
### `workflow-id`
8+
9+
**Required** The id of thw workflow to trgger and run.
10+
11+
## Outputs
12+
13+
### `time`
14+
15+
The time we greeted you.
16+
17+
## Example usage
18+
19+
uses: actions/hello-world-javascript-action@v1
20+
with:
21+
who-to-greet: 'Mona the Octocat'

action.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Workflow Dispatch'
2+
description: 'Trigger another GitHub Actions workflow'
3+
4+
inputs:
5+
workflow-id:
6+
description: 'Id of workflow'
7+
required: true
8+
ref:
9+
description: 'The reference of the workflow run. The reference can be a branch, tag, or a commit SHA'
10+
required: true
11+
12+
runs:
13+
using: 'node12'
14+
main: 'index.js'

0 commit comments

Comments
 (0)