Skip to content

Commit

Permalink
Updated action.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Sep 25, 2021
1 parent c39e101 commit c7d3e13
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 29 deletions.
25 changes: 0 additions & 25 deletions Dockerfile

This file was deleted.

17 changes: 14 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,19 @@ inputs:
default: |
README.md
runs:
using: 'docker'
image: 'Dockerfile'
using: 'composite'
steps:
- run: |
bash $GITHUB_ACTION_PATH/entrypoint.sh
id: auto-doc
shell: bash
env:
GITHUB_BASE_REF: ${{ github.base_ref }}
GITHUB_REPOSITORY: ${{ github.repository }}
# INPUT_<VARIABLE_NAME> is not available in Composite run steps
# https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611
INPUT_TOKEN: ${{ inputs.token }}
INPUT_FILES: ${{ inputs.files }}
branding:
icon: check-square
icon: file-text
color: white
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

set -e

make build

for path in ${INPUT_FILES}
do
echo "$path"
auto_doc --help
./auto_doc --help
done

0 comments on commit c7d3e13

Please sign in to comment.