Skip to content

Commit ca8ad6e

Browse files
authoredMar 1, 2021
Merge pull request #2 from andrew-gillan/first-action
Create Dockerfile
2 parents 35f4883 + 6c66ffb commit ca8ad6e

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed
 

‎.github/workflows/main.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: A workflow for my Hello World file
2+
on: push
3+
4+
jobs:
5+
build:
6+
name: Hello world action
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: ./action-a
11+
with:
12+
MY_NAME: "Mona"

‎action-a/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM debian:9.5-slim
2+
3+
ADD entrypoint.sh /entrypoint.sh
4+
RUN chmod +x /entrypoint.sh
5+
ENTRYPOINT ["/entrypoint.sh"]

‎action-a/action.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Hello Actions"
2+
description: "Greet someone"
3+
author: "octocat@github.com"
4+
5+
inputs:
6+
MY_NAME:
7+
description: "Who to greet"
8+
required: true
9+
default: "World"
10+
11+
runs:
12+
using: "docker"
13+
image: "Dockerfile"
14+
15+
branding:
16+
icon: "mic"
17+
color: "purple"
18+

‎action-a/entrypoint.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh -l
2+
3+
4+
5+
sh -c "echo Hello world my name is $INPUT_MY_NAME"

0 commit comments

Comments
 (0)