Testing github action

This commit is contained in:
cpina 2020-03-29 16:44:47 +02:00
parent 4f3ef03b3a
commit d17570f574
4 changed files with 44 additions and 1 deletions

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM alpine:3.10
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -1 +1,13 @@
# github-action-push-to-another-repository
Helps to push generated files to another directory
## Inputs
### `source-folder`
### `destination-github-username`
### `destination-repository-name`
## Example usage
uses: actions/... TODO

19
action.yml Normal file
View File

@ -0,0 +1,19 @@
name: 'Push directory to another repository'
description: 'Useful to push files to another repository to be used, for example, via github pages'
inputs:
source-directory:
description: 'Source directory from the origin directory'
required: true
destination-github-username:
description: 'Name of the destination username/organization'
required: true
destination-repository-name:
description: 'Destination repository'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.source-directory }}
- ${{ inputs.destination-github-username }}
- ${{ inputs.destination-repository-name }}

7
entrypoint.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh -l
echo "Starts"
echo "1: $1"
echo "2: $2"
echo "3: $3"
echo "Ends