Skip to content

Commit ad356c3

Browse files
Merge pull request #115 from thunderstore-io/fix-actions-rate-limit
Fix actions rate limit Release.yml's MacOS actions were getting stuck in a 403 loop. A similar issue was reported [here](moonrepo/setup-rust#22 (comment)) where the fix was said to be setting the github token to avoid hitting an API rate limit. Allegedly the action might have unstuck itself eventually, but I ended up canceling it regardless before it might have been able to.
2 parents a6ee9f2 + afeb63f commit ad356c3

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [ published ]
66

7+
env:
8+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For setup-rust
9+
710
jobs:
811
nuget:
912
name: Publish NuGet Package

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- '[0-9]+.[0-9]+.[0-9]+'
77

8+
env:
9+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For setup-rust
10+
811
jobs:
912
# Validate tag with proper regex since the check above is very limited.
1013
validate-tag:

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Trigger on any pull request
88
pull_request:
99

10+
env:
11+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For setup-rust
12+
1013
jobs:
1114
pre-commit:
1215
name: Code style check

0 commit comments

Comments
 (0)