Skip to content

Commit

Permalink
ci: use checkout actions instead of manually clone
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan committed Dec 5, 2023
1 parent 2c92b45 commit 1f008ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ jobs:
- name: Clone sentences-bundle repository
if: steps.check_version.outputs.result != 'exists'
run: |
TAG=${{ steps.get_tag.outputs.tag }}
git clone --branch $TAG --single-branch https://github.com/hitokoto-osc/sentences-bundle.git sentences-bundle
uses: actions/checkout@v4
with:
repository: hitokoto-osc/sentences-bundle
ref: ${{ steps.get_tag.outputs.tag }}
path: sentences-bundle

- name: Copy JSON files
if: steps.check_version.outputs.result != 'exists'
Expand Down

0 comments on commit 1f008ba

Please sign in to comment.