diff --git a/locmapper/Dockerfile b/locmapper/Dockerfile new file mode 100644 index 0000000..82c8866 --- /dev/null +++ b/locmapper/Dockerfile @@ -0,0 +1,2 @@ +# This Dockerfile is used to create a proxy for Github actions. +FROM happn/locmapper:1.3 diff --git a/locmapper/README.md b/locmapper/README.md new file mode 100644 index 0000000..3a1dc10 --- /dev/null +++ b/locmapper/README.md @@ -0,0 +1,26 @@ +# LocMapper action + +## Basic usage + +```yaml +name: LocMapper +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: happn-tech/actions/locmapper@master + with: + command: 'lint' +``` + +## Inputs + +| Name | Type | Description | Default | Required | +| ------------------ | ---------------- | ----------------------------------------------------------------------------- | -------- | -------- | +| command | string | Default command | | - | diff --git a/locmapper/action.yml b/locmapper/action.yml new file mode 100644 index 0000000..a82c209 --- /dev/null +++ b/locmapper/action.yml @@ -0,0 +1,11 @@ +name: 'LocMapper' +description: GitHub Action for using locmapper cli +inputs: + command: + description: 'Default input command' + required: true +runs: + using: 'docker' + image: 'Dockerfile' + args: + - ${{ inputs.command }}