Skip to content

Commit

Permalink
Action cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhvorost committed Nov 23, 2022
1 parent d017bce commit afb12b4
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@ runs:
run: |
mkdir _sdc
cp -r ${{ github.action_path }}/* _sdc
cd _sdc
ls
cd -
# - uses: actions/cache@v3
# with:
# path: |
# _sdc/.build
# _sdc/node_modules
# key: ${{ runner.os }}-action-${{ hashFiles('**/_sdc/Package.resolved', '**/_sdc/package-lock.json') }}#
- uses: actions/cache@v3
with:
path: |
_sdc/.build
_sdc/node_modules
key: ${{ runner.os }}-action-${{ hashFiles('**/_sdc/Package.resolved', '**/_sdc/package-lock.json') }}#

- shell: bash
run: |
Expand All @@ -38,10 +34,10 @@ runs:
cd -
# Run
- shell: bash
run: |
swift-doc-coverage ${{ inputs.inputs }} -r json -o "${{ github.workspace }}/result.json"
TOKEN="${{ inputs.token }}" FILE="${{ github.workspace }}/result.json" REPOSITORY="${{ github.repository }}" node ${{ github.action_path }}/action.js
# - shell: bash
# run: |
# swift-doc-coverage ${{ inputs.inputs }} -r json -o "${{ github.workspace }}/result.json"
# TOKEN="${{ inputs.token }}" FILE="${{ github.workspace }}/result.json" REPOSITORY="${{ github.repository }}" node ${{ github.action_path }}/action.js


branding:
Expand Down

0 comments on commit afb12b4

Please sign in to comment.