Skip to content

Commit

Permalink
Merge pull request #37 from tj-actions/chore/updated-action
Browse files Browse the repository at this point in the history
Updated action.
  • Loading branch information
jackton1 authored Nov 5, 2021
2 parents c037210 + b16467f commit f10f986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ./

Expand Down
10 changes: 3 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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_<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_OUTPUT: ${{ inputs.output }}
INPUT_ACTION: ${{ inputs.action }}
branding:
icon: file-text
color: white

0 comments on commit f10f986

Please sign in to comment.