Skip to content

Commit

Permalink
Tidy up version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hdmsantander committed Nov 17, 2020
1 parent fbbaa08 commit dd56207
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ ENV HOME /home/$USER

WORKDIR $HOME

RUN apt-get update && apt install -y wget unzip
RUN apt-get update && apt-get install -y wget unzip

RUN adduser --system --uid $UID $USER

RUN chown -R $USER $HOME

USER $USER

RUN wget https://github.com/multilang-depends/depends/releases/download/0.9.6e/depends-0.9.6-package.zip
RUN unzip -j ./depends-0.9.6-package.zip -d $HOME
RUN echo $PATH
RUN wget -q https://github.com/multilang-depends/depends/releases/download/0.9.6e/depends-0.9.6-package.zip
RUN unzip -q -j ./depends-0.9.6-package.zip -d $HOME

COPY entrypoint.sh /entrypoint.sh

Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ This action executes depends analysis.

## Outputs

### `depends`
### `depends.json`

The result of the depends analysis in JSON format.
The result of the depends analysis in JSON format as a file in the root folder of the runner. This file can be uploaded as an artifact in the same workflow or can be used as is in the same job context.

## Example usage

Expand All @@ -23,10 +23,11 @@ on: [push]
jobs:
depends_job:
runs-on: ubuntu-latest
name: Depends analysis.
name: Depends analysis
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Execute depends.
id: depends
uses: hdmsantander/depends-docker-action@1.0
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
required: true
default: 'java src'
outputs:
depends:
result:
description: 'The result of the depends analysis'
runs:
using: 'docker'
Expand Down
4 changes: 0 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ OUTPUT=./depends.json

if [ -f "$OUTPUT" ]; then
chmod 644 depends.json
depends=$(cat depends.json)
echo "::set-output name=depends::$depends"
else
echo "::set-output name=depends::[]"
fi

0 comments on commit dd56207

Please sign in to comment.