mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-22 08:06:10 -07:00
Testing github action
This commit is contained in:
parent
4f3ef03b3a
commit
d17570f574
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM alpine:3.10
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
12
README.md
12
README.md
|
@ -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
19
action.yml
Normal 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
7
entrypoint.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh -l
|
||||
|
||||
echo "Starts"
|
||||
echo "1: $1"
|
||||
echo "2: $2"
|
||||
echo "3: $3"
|
||||
echo "Ends
|
Loading…
Reference in New Issue
Block a user