This action prints "Hello World" or "Hello" + the name of a person to greet to the log.
-
官方中文参考文档:创建 Docker 容器操作
-
官方英文参考文档:Creating a Docker container action
Required The name of the person to greet. Default "World"
.
The time we greeted you.
uses: kuxiade/hello-world-docker-action@v1
with:
who-to-greet: 'Mona the Octocat'
-
本仓库 action - kuxiade/hello-world-docker-action 作为 action 时,必需的有效文件实际上只有该仓库根目录下的
Dockerfile
、action.yml
、entrypoint.sh
这三个文件。 -
.github/workflows
目录下的文件只是作为测试该仓库作为 action 工作时是否有效,可以删除.github/workflows
下的所有文件,或者直接删除.github
文件夹,这样做不会影响该仓库作为 action 的功能。 -
doc 文件夹下的文件作为补充文档,对创建 action 来说非必需,同样可以删除 doc 文件夹。
-
README.md 作为说明文档,对创建 action 来说非必需,一样可以删除。不过说明文档还是非常重要的,方便其他用户使用该 action。