Skip to content

Commit

Permalink
Use actions/checkout instead of git command
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Jul 24, 2024
1 parent 2f85466 commit 2d14ed6
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/util/initialize/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,21 @@ runs:
uses: sass/clone-linked-repo@v1
with: {repo: sass/sass, path: build/language}

# Git is not pre-installed on windows-arm64 runner, however actions/checkout support
# downloading repo via GitHub API.
- name: Check out the language repo
if: github.event_name != 'pull_request'
uses: actions/checkout@v4
with: {repository: sass/sass, path: build/language}

- name: Generate Dart from protobuf
if: runner.os != 'Windows'
run: dart run grinder protobuf
env:
UPDATE_SASS_SASS_REPO: ${{ github.event_name == 'pull_request' && 'false' || 'true' }}
env: {UPDATE_SASS_SASS_REPO: false}
shell: bash

- name: Generate Dart from protobuf
if: runner.os == 'Windows'
run: dart run grinder protobuf
env:
UPDATE_SASS_SASS_REPO: ${{ github.event_name == 'pull_request' && 'false' || 'true' }}
env: {UPDATE_SASS_SASS_REPO: false}
shell: powershell

0 comments on commit 2d14ed6

Please sign in to comment.