jghkgh
This commit is contained in:
parent
2efdcd1ac4
commit
defa721170
1
.github/custom-actions/sourcehut-layer
vendored
1
.github/custom-actions/sourcehut-layer
vendored
@ -1 +0,0 @@
|
||||
Subproject commit b136eb8894c5cb1dd5807da824be97ccdf9b5423
|
8
.github/custom-actions/sourcehut-layer2/Dockerfile
vendored
Normal file
8
.github/custom-actions/sourcehut-layer2/Dockerfile
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Container image that runs your code
|
||||
FROM alpine:3.10
|
||||
|
||||
# Copies your code file from your action repository to the filesystem path `/` of the container
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
# Code file to execute when the docker container starts up (`entrypoint.sh`)
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
21
.github/custom-actions/sourcehut-layer2/LICENSE
vendored
Normal file
21
.github/custom-actions/sourcehut-layer2/LICENSE
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 GitHub Actions
|
||||
|
||||
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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
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.
|
1
.github/custom-actions/sourcehut-layer2/README.md
vendored
Normal file
1
.github/custom-actions/sourcehut-layer2/README.md
vendored
Normal file
@ -0,0 +1 @@
|
||||
Action designed to be used for sourcehut to allow use on github
|
23
.github/custom-actions/sourcehut-layer2/README.md.old
vendored
Normal file
23
.github/custom-actions/sourcehut-layer2/README.md.old
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# Hello world docker action
|
||||
|
||||
This action prints "Hello World" to the log or "Hello" + the name of a person to greet. To learn how this action was built, see "[Creating a Docker container action](https://help.github.com/en/articles/creating-a-docker-container-action)" in the GitHub Help documentation.
|
||||
|
||||
## Inputs
|
||||
|
||||
### `who-to-greet`
|
||||
|
||||
**Required** The name of the person to greet. Default `"World"`.
|
||||
|
||||
## Outputs
|
||||
|
||||
### `time`
|
||||
|
||||
The time we greeted you.
|
||||
|
||||
## Example usage
|
||||
|
||||
```yaml
|
||||
uses: actions/hello-world-docker-action@master
|
||||
with:
|
||||
who-to-greet: 'Mona the Octocat'
|
||||
```
|
15
.github/custom-actions/sourcehut-layer2/action.yml
vendored
Normal file
15
.github/custom-actions/sourcehut-layer2/action.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
name: 'Hello World'
|
||||
description: 'Greet someone and record the time'
|
||||
inputs:
|
||||
who-to-greet: # id of input
|
||||
description: 'Who to greet'
|
||||
required: true
|
||||
default: 'World'
|
||||
outputs:
|
||||
time: # id of output
|
||||
description: 'The time we greeted you'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
args:
|
||||
- ${{ inputs.who-to-greet }}
|
5
.github/custom-actions/sourcehut-layer2/entrypoint.sh
vendored
Executable file
5
.github/custom-actions/sourcehut-layer2/entrypoint.sh
vendored
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh -l
|
||||
|
||||
echo "Hello $1"
|
||||
time=$(date)
|
||||
echo ::set-output name=time::$time
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -10,9 +10,9 @@ jobs:
|
||||
- name: check zernitdir
|
||||
run: |
|
||||
ls -la /home/runner/work/Zernit/Zernit/
|
||||
ls -la /home/runner/work/Zernit/Zernit/.github/custom-actions/sourcehut-layer
|
||||
ls -la /home/runner/work/Zernit/Zernit/.github/custom-actions2/sourcehut-layer
|
||||
- name: Hello world action step
|
||||
uses: ./.github/custom-actions/sourcehut-layer
|
||||
uses: ./.github/custom-actions2/sourcehut-layer
|
||||
id: hello
|
||||
with:
|
||||
who-to-greet: 'Mona the Octocat'
|
||||
|
Loading…
Reference in New Issue
Block a user