Skip to content

Commit

Permalink
Merge pull request #27 from chetan/docs/update-readme-wd
Browse files Browse the repository at this point in the history
docs: updated README with new working-directory input
  • Loading branch information
chetan authored Jul 4, 2024
2 parents 301991b + 0d2b68e commit 26fb42a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# Note: This is *only* for the very next step, it is not required by
# git-restore-mtime-action.
- name: setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '10.x'
node-version: 'latest'

# Run the build script which populates the ./dist folder
- name: build
Expand All @@ -50,7 +50,7 @@ jobs:

# Check out the new branch
- name: checkout dist
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: dist
# git-restore-mtime-bare uses the ref log to find the correct timestamp
Expand All @@ -73,5 +73,15 @@ jobs:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
```
### Configuration
```yaml
- name: restore timestamps
uses: chetan/git-restore-mtime-action@v2
with:
# Directory to change to before running the action. (Optional)
# Default: '.'
working-directory: '.'
```

0 comments on commit 26fb42a

Please sign in to comment.