Skip to content

Commit

Permalink
Problem: nix in CI trigger rate limit (#924)
Browse files Browse the repository at this point in the history
Solution:
- set the github access token
  • Loading branch information
yihuang authored Feb 17, 2023
1 parent 0b6a639 commit dfe485e
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 23 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,11 @@ jobs:
files: |
go.mod
go.sum
- uses: cachix/install-nix-action@v15
- uses: cachix/install-nix-action@v18
if: steps.changed-files.outputs.any_changed == 'true'
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: update gomod2nix
run: nix run .#update-gomod2nix
if: steps.changed-files.outputs.any_changed == 'true'
Expand Down
77 changes: 55 additions & 22 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
skipPush: true
Expand All @@ -30,8 +33,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
# github don't pass secrets for pull request from fork repos,
Expand Down Expand Up @@ -70,8 +76,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
# github don't pass secrets for pull request from fork repos,
Expand All @@ -86,8 +95,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
- name: Run integration tests
Expand Down Expand Up @@ -118,8 +130,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
- name: Run integration tests
Expand Down Expand Up @@ -150,8 +165,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
- name: Run integration tests
Expand Down Expand Up @@ -182,8 +200,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
- name: Run integration tests
Expand Down Expand Up @@ -214,8 +235,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
- name: Run integration tests
Expand Down Expand Up @@ -246,8 +270,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
- name: Run integration tests
Expand Down Expand Up @@ -278,8 +305,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
- name: Run integration tests
Expand Down Expand Up @@ -311,8 +341,11 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cachix/install-nix-action@v15
- uses: cachix/cachix-action@v10
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: crypto-com
- name: Run integration tests
Expand Down

0 comments on commit dfe485e

Please sign in to comment.