mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
Pin actions/cache to specific SHA (#6262)
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
||||
- name: Get Swift version
|
||||
id: swift_version
|
||||
run: echo "version=$(swift --version | grep '[5-9]\.[0-9]\+\(\.[0-9]\)\?' -o | head -1)" >> "$GITHUB_OUTPUT"
|
||||
- uses: actions/cache@v4
|
||||
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
with:
|
||||
key: ${{ runner.os }}-spm-${{ steps.swift_version.outputs.version }}-${{ hashFiles('Package.resolved', 'Package.swift') }}
|
||||
restore-keys: ${{ runner.os }}-spm-${{ steps.swift_version.outputs.version }}-
|
||||
|
||||
@@ -27,7 +27,7 @@ jobs:
|
||||
- name: Get Swift version
|
||||
id: swift_version
|
||||
run: echo "version=$(swift --version | grep '[5-9]\.[0-9]\+\(\.[0-9]\)\?' -o | head -1)" >> "$GITHUB_OUTPUT"
|
||||
- uses: actions/cache@v4
|
||||
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
with:
|
||||
key: ${{ runner.os }}-spm-${{ steps.swift_version.outputs.version }}-${{ hashFiles('Package.resolved', 'Package.swift') }}
|
||||
restore-keys: ${{ runner.os }}-spm-${{ steps.swift_version.outputs.version }}-
|
||||
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
- name: Get Swift version
|
||||
id: swift_version
|
||||
run: echo "version=$(swift --version | grep '[5-9]\.[0-9]\+\(\.[0-9]\)\?' -o | head -1)" >> "$GITHUB_OUTPUT"
|
||||
- uses: actions/cache@v4
|
||||
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
with:
|
||||
key: ${{ runner.os }}-spm-${{ steps.swift_version.outputs.version }}-${{ hashFiles('Package.resolved', 'Package.swift') }}
|
||||
restore-keys: ${{ runner.os }}-spm-${{ steps.swift_version.outputs.version }}-
|
||||
@@ -49,7 +49,7 @@ jobs:
|
||||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/cache@v4
|
||||
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
||||
with:
|
||||
key: ${{ runner.os }}-xcode-spm-${{ matrix.xcode }}-${{ hashFiles('Package.resolved', 'Package.swift') }}
|
||||
restore-keys: ${{ runner.os }}-xcode-spm-${{ matrix.xcode }}-
|
||||
|
||||
Reference in New Issue
Block a user