From 06067cd4c83e372310d6f79d1c625f6870ff7a2a Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Wed, 19 Mar 2025 15:44:16 +0900 Subject: [PATCH] ci: use Cysharp/Actions checkout instead of 3rd party directly --- .github/workflows/build-debug.yml | 4 ++-- .github/workflows/build-docs.yml | 4 ++-- .github/workflows/build-release.yml | 4 ++-- .github/workflows/toc.yml | 9 ++++----- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 4438794..b7728b7 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: Cysharp/Actions/.github/actions/checkout@main - uses: Cysharp/Actions/.github/actions/setup-dotnet@main - run: dotnet build -c Debug - run: dotnet test -c Debug @@ -39,7 +39,7 @@ jobs: UNITY_PASSWORD: "op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/UNITY_LICENSE/credential" UNITY_SERIAL: "op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/UNITY_LICENSE/serial" - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: Cysharp/Actions/.github/actions/checkout@main # Execute scripts: Export Package # /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod PackageExporter.Export diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index e772684..eb946f8 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: Cysharp/Actions/.github/actions/checkout@main + - uses: Cysharp/Actions/.github/actions/checkout@main with: repository: Cysharp/DocfxTemplate path: docs/_DocfxTemplate diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 3bd0713..bf61a72 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -26,7 +26,7 @@ jobs: timeout-minutes: 10 steps: - run: echo ${{ needs.update-packagejson.outputs.sha }} - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: Cysharp/Actions/.github/actions/checkout@main with: ref: ${{ needs.update-packagejson.outputs.sha }} - uses: Cysharp/Actions/.github/actions/setup-dotnet@main @@ -61,7 +61,7 @@ jobs: UNITY_SERIAL: "op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/UNITY_LICENSE/serial" - run: echo ${{ needs.update-packagejson.outputs.sha }} - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: Cysharp/Actions/.github/actions/checkout@main with: ref: ${{ needs.update-packagejson.outputs.sha }} # Execute scripts: Export Package diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml index 99d0bf5..77e0c74 100644 --- a/.github/workflows/toc.yml +++ b/.github/workflows/toc.yml @@ -8,8 +8,7 @@ on: jobs: generateTOC: name: TOC Generator - runs-on: ubuntu-latest - steps: - - uses: technote-space/toc-generator@9e238e7974de5fcf7b17b7acc54c896160dda0a3 # v4.3.1 - with: - TOC_TITLE: "## Table of Contents" + uses: Cysharp/Actions/.github/workflows/toc-generator.yaml@main + with: + TOC_TITLE: "## Table of Contents" + secrets: inherit