From 32697f2ef5851e3eb91b3e94fe230bae758c227e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 16 Jul 2025 14:15:29 +0200 Subject: [PATCH] chore: pinc GH Actions --- .github/actions/setup/action.yml | 6 ++--- .github/workflows/build-templates.yml | 14 ++++++------ .github/workflows/check-project.yml | 2 +- .github/workflows/deploy-docs.yml | 6 ++--- .github/workflows/rebase.yml | 4 ++-- .../common/$.github/actions/setup/action.yml | 6 ++--- .../common/$.github/workflows/ci.yml | 22 +++++++++---------- 7 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 066f4f5e1..a61333276 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -5,13 +5,13 @@ runs: using: composite steps: - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: .nvmrc - name: Restore dependencies id: yarn-cache - uses: actions/cache/restore@v4 + uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: | **/node_modules @@ -28,7 +28,7 @@ runs: - name: Cache dependencies if: steps.yarn-cache.outputs.cache-hit != 'true' - uses: actions/cache/save@v4 + uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: | **/node_modules diff --git a/.github/workflows/build-templates.yml b/.github/workflows/build-templates.yml index f2bcad51e..cc6721445 100644 --- a/.github/workflows/build-templates.yml +++ b/.github/workflows/build-templates.yml @@ -49,7 +49,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup uses: ./.github/actions/setup @@ -88,7 +88,7 @@ jobs: - name: Restore dependencies of library id: library-yarn-cache - uses: actions/cache/restore@v4 + uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: | ${{ env.work_dir }}/**/node_modules @@ -107,7 +107,7 @@ jobs: - name: Cache dependencies of library if: steps.library-yarn-cache.outputs.cache-hit != 'true' - uses: actions/cache/save@v4 + uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: | ${{ env.work_dir }}/**/node_modules @@ -142,7 +142,7 @@ jobs: - name: Cache turborepo if: env.android_build == 1 || env.ios_build == 1 - uses: actions/cache@v4 + uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: | ${{ env.work_dir }}/.turbo @@ -197,7 +197,7 @@ jobs: - name: Install JDK if: env.android_build == 1 && env.turbo_cache_hit_android != 1 - uses: actions/setup-java@v4 + uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 with: distribution: 'zulu' java-version: '17' @@ -209,7 +209,7 @@ jobs: - name: Cache Gradle if: env.android_build == 1 && env.turbo_cache_hit_android != 1 - uses: actions/cache@v4 + uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: | ~/.gradle/wrapper @@ -228,7 +228,7 @@ jobs: - name: Use appropriate Xcode version if: env.ios_build == 1 && env.turbo_cache_hit_ios != 1 - uses: maxim-lobanov/setup-xcode@v1 + uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0 with: xcode-version: ${{ env.XCODE_VERSION }} - name: Install cocoapods diff --git a/.github/workflows/check-project.yml b/.github/workflows/check-project.yml index 07b411cf8..cf891468f 100644 --- a/.github/workflows/check-project.yml +++ b/.github/workflows/check-project.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup uses: ./.github/actions/setup diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index fa512ab38..946cc981a 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -13,13 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup uses: ./.github/actions/setup - name: Cache build - uses: actions/cache@v4 + uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: | docs/.next/cache @@ -34,7 +34,7 @@ jobs: touch docs/out/.nojekyll - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4 + uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3 with: branch: gh-pages folder: docs/out diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index eda436ded..35c5ea1ce 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -10,12 +10,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 - name: Automatic Rebase - uses: cirrus-actions/rebase@1.2 + uses: cirrus-actions/rebase@cf2ad5908b365d40882ef06dab959717ec1aaf71 # 1.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/packages/create-react-native-library/templates/common/$.github/actions/setup/action.yml b/packages/create-react-native-library/templates/common/$.github/actions/setup/action.yml index 066f4f5e1..a61333276 100644 --- a/packages/create-react-native-library/templates/common/$.github/actions/setup/action.yml +++ b/packages/create-react-native-library/templates/common/$.github/actions/setup/action.yml @@ -5,13 +5,13 @@ runs: using: composite steps: - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: .nvmrc - name: Restore dependencies id: yarn-cache - uses: actions/cache/restore@v4 + uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: | **/node_modules @@ -28,7 +28,7 @@ runs: - name: Cache dependencies if: steps.yarn-cache.outputs.cache-hit != 'true' - uses: actions/cache/save@v4 + uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: | **/node_modules diff --git a/packages/create-react-native-library/templates/common/$.github/workflows/ci.yml b/packages/create-react-native-library/templates/common/$.github/workflows/ci.yml index 9fa7e5228..76f903a9e 100644 --- a/packages/create-react-native-library/templates/common/$.github/workflows/ci.yml +++ b/packages/create-react-native-library/templates/common/$.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup uses: ./.github/actions/setup @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup uses: ./.github/actions/setup @@ -42,7 +42,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup uses: ./.github/actions/setup @@ -57,7 +57,7 @@ jobs: TURBO_CACHE_DIR: .turbo/android steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup uses: ./.github/actions/setup @@ -68,7 +68,7 @@ jobs: <% } -%> - name: Cache turborepo for Android - uses: actions/cache@v4 + uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: ${{ env.TURBO_CACHE_DIR }} key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }} @@ -85,7 +85,7 @@ jobs: - name: Install JDK if: env.turbo_cache_hit != 1 - uses: actions/setup-java@v4 + uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 with: distribution: 'zulu' java-version: '17' @@ -97,7 +97,7 @@ jobs: - name: Cache Gradle if: env.turbo_cache_hit != 1 - uses: actions/cache@v4 + uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: | ~/.gradle/wrapper @@ -119,7 +119,7 @@ jobs: TURBO_CACHE_DIR: .turbo/ios steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup uses: ./.github/actions/setup @@ -130,7 +130,7 @@ jobs: <% } -%> - name: Cache turborepo for iOS - uses: actions/cache@v4 + uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: ${{ env.TURBO_CACHE_DIR }} key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }} @@ -147,7 +147,7 @@ jobs: - name: Use appropriate Xcode version if: env.turbo_cache_hit != 1 - uses: maxim-lobanov/setup-xcode@v1 + uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0 with: xcode-version: ${{ env.XCODE_VERSION }} @@ -167,7 +167,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup uses: ./.github/actions/setup