From 2d14ed6efc01cb560e428283313caf46551b0033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Tue, 23 Jul 2024 15:58:24 -0700 Subject: [PATCH] Use actions/checkout instead of git command --- .github/util/initialize/action.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/util/initialize/action.yml b/.github/util/initialize/action.yml index 780e34487..ba37f9376 100644 --- a/.github/util/initialize/action.yml +++ b/.github/util/initialize/action.yml @@ -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