Skip to content

Commit

Permalink
Fix action_path
Browse files Browse the repository at this point in the history
Pull Request: #3 (main)
  • Loading branch information
dimikot committed Feb 28, 2024
1 parent ebda0f1 commit 43900e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ones, so rsync can run efficiently.

<!-- start usage -->
```yaml
- uses: actions/ci-storage@v1
- uses: dimikot/ci-storage@v1
with:
# What to do (store or load).
# Required.
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Build
run: npm i && npm run build
- name: Store build artifacts, work directory and .git directory
uses: actions/ci-storage@v1
uses: dimikot/ci-storage@v1
with:
action: store
storage-host: my-hostname.com
Expand All @@ -109,7 +109,7 @@ jobs:
runs-on: [self-hosted]
steps:
- name: Load build artifacts, work directory and .git directory
uses: actions/ci-storage@v1
uses: dimikot/ci-storage@v1
with:
action: load
storage-host: my-hostname.com
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ runs:
steps:
- name: Run ci-storage ${{ inputs.action }}
run: >
pwd && ./ci-storage
pwd && "${{ github.action_path }}/ci-storage"
--storage-host="${{ inputs.storage-host || '' }}"
--storage-dir="${{ inputs.storage-dir || '' }}"
--storage-max-age-sec="${{ inputs.storage-max-age-sec || '' }}"
Expand Down

0 comments on commit 43900e4

Please sign in to comment.