Skip to content

Commit 36edd51

Browse files
authored
Merge pull request #29 from roubachof/ci/carthage-token
Add token to carthage commands to avoid rate limiting + pin versions
2 parents c5a45da + 16b20cf commit 36edd51

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2323
with:
2424
fetch-depth: 0
2525

@@ -31,7 +31,7 @@ jobs:
3131
name: Create Artifacts Directory
3232
3333
- name: Setup .NET
34-
uses: actions/setup-dotnet@v4
34+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9
3535
with:
3636
dotnet-version: ${{ env.dotnetVersion }}
3737

@@ -41,13 +41,13 @@ jobs:
4141
dotnetVersion: ${{ env.dotnetVersion }}
4242

4343
- name: Install GitVersion
44-
uses: gittools/actions/gitversion/setup@v3.0.0
44+
uses: gittools/actions/gitversion/setup@441c43ddefe9c8f5b8e8cee0257bcf06d518d2d3
4545
with:
4646
versionSpec: '5.x'
4747

4848
- name: Determine Version
4949
id: gitversion
50-
uses: gittools/actions/gitversion/execute@v3.0.0
50+
uses: gittools/actions/gitversion/execute@441c43ddefe9c8f5b8e8cee0257bcf06d518d2d3
5151
with:
5252
useConfigFile: true
5353

@@ -56,14 +56,8 @@ jobs:
5656
mkdir -p artfifacts
5757
sh carthage.sh update --use-xcframeworks --platform iOS --log-path artifacts/carthage.log
5858
continue-on-error: true
59-
60-
- name: Disable SwiftLint in Nuke
61-
run: |
62-
echo 'exit 0' > Carthage/Checkouts/Nuke/Scripts/lint.sh
63-
echo 'exit 0' > Carthage/Checkouts/Nuke/Scripts/validate.sh
64-
65-
- name: Build Nuke XCFramework
66-
run: sh carthage.sh build --use-xcframeworks --platform iOS --log-path artifacts/carthage.log
59+
env:
60+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6761

6862
- name: Build NukeProxy XCFramework
6963
run: |
@@ -77,13 +71,13 @@ jobs:
7771

7872
- name: Upload a Other Artifacts
7973
if: always()
80-
uses: actions/upload-artifact@v4
74+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
8175
with:
8276
name: Other
8377
path: 'artifacts/**/*'
8478

8579
- name: Upload a NuGet Artifacts
86-
uses: actions/upload-artifact@v4
80+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
8781
with:
8882
name: NuGet
8983
path: '**/*.nupkg'

0 commit comments

Comments
 (0)