Skip to content

Commit

Permalink
ci: update checkout, cache, find-comment and create-or-update-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP authored Feb 7, 2024
1 parent afc40cc commit 4f1835f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
name: Test SDK
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Xcode ${{ env.XCODE_VERSION }}
run: sudo xcode-select -switch /Applications/Xcode_${XCODE_VERSION}.app

- name: "Cache dependencies"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: Carthage/build
key: ${{ runner.os }}-carthage-v2-${{ hashFiles('**/Cartfile.resolved') }}
Expand All @@ -50,7 +50,7 @@ jobs:
cp .lint/cocoapods-size/result.json cocoapods-size-result.json
- if: github.event_name == 'push'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: cocoapods-size-result.json
key: cocoapods-size-${{ github.sha }}
Expand All @@ -60,9 +60,9 @@ jobs:
if: github.event_name == 'pull_request'
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: cocoapods-size-result.json
key: cocoapods-size-${{ github.sha }}
Expand Down Expand Up @@ -97,13 +97,13 @@ jobs:
- id: diff_size
run: echo "value=$((${{ steps.pr_size.outputs.value }} - ${{ steps.main_size.outputs.value }}))" >> $GITHUB_OUTPUT

- uses: peter-evans/find-comment@v2
- uses: peter-evans/find-comment@v3
id: find_comment
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: Cocoapods size report

- uses: peter-evans/create-or-update-comment@v2
- uses: peter-evans/create-or-update-comment@v3
with:
body: |
Cocoapods size report:
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
- xcode: '14.2'
experimental: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Xcode ${{ matrix.xcode }}
run: sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app
Expand All @@ -155,7 +155,7 @@ jobs:
needs: samples
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Xcode ${{ env.XCODE_VERSION }}
run: sudo xcode-select -switch /Applications/Xcode_${XCODE_VERSION}.app
Expand All @@ -172,4 +172,4 @@ jobs:
run: |
git config user.name github-actions
git config user.email [email protected]
bundle exec fastlane release
bundle exec fastlane release

0 comments on commit 4f1835f

Please sign in to comment.