diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3eb27d1e..4f0d06f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,18 +22,6 @@ jobs: workdir: test go_version: "1.14.4" - - name: Setup go - uses: actions/setup-go@v2 - with: - go-version: '1.14.4' - - - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go-v2- - - name: Run auto-doc using the current working directory uses: ./ diff --git a/action.yml b/action.yml index bd41d6d2..968ae8c6 100644 --- a/action.yml +++ b/action.yml @@ -15,14 +15,10 @@ runs: using: 'composite' steps: - run: | - make run OUTPUT="${INPUT_OUTPUT}" ACTION="${INPUT_ACTION}" - id: auto-doc + curl -sf https://gobinaries.com/github.com/tj-actions/auto-doc@v1.0.0 | PREFIX=. sh + ./auto-doc --action="${{ inputs.action }}" --output="${{ inputs.output }}" + rm -f ./auto-doc shell: bash - env: - # INPUT_ is not available in Composite run steps - # https://github.community/t/input-variable-name-is-not-available-in-composite-run-steps/127611 - INPUT_OUTPUT: ${{ inputs.output }} - INPUT_ACTION: ${{ inputs.action }} branding: icon: file-text color: white