Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8e30401

Browse files
committed
My first action is ready
1 parentf2e63a5 commit8e30401

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

‎Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Container image that runs your code
2+
FROM alpine:3.10
3+
4+
# Copies your code file from your action repository to the filesystem path `/` of the container
5+
COPY entrypoint.sh /entrypoint.sh
6+
7+
# Code file to execute when the docker container starts up (`entrypoint.sh`)
8+
ENTRYPOINT ["/entrypoint.sh"]

‎action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# action.yml
2+
name:'Hello World'
3+
description:'Greet someone and record the time'
4+
inputs:
5+
who-to-greet:# id of input
6+
description:'Who to greet'
7+
required:true
8+
default:'World'
9+
outputs:
10+
time:# id of output
11+
description:'The time we greeted you'
12+
runs:
13+
using:'docker'
14+
image:'Dockerfile'
15+
args:
16+
-${{ inputs.who-to-greet }}

‎entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash -l
2+
3+
echo"Hello$1"
4+
time=$(date)
5+
echo"time=$time">>$GITHUB_OUTPUT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp