Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update checkout, cache, find-comment and create-or-update-comment #132

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading