ci: Pass cachix token to all nix jobs

This commit is contained in:
Wolfgang Walther
2024-02-24 19:59:46 +01:00
committed by Wolfgang Walther
parent 44e041282c
commit 11accb760a
3 changed files with 9 additions and 0 deletions
+2
View File
@@ -17,6 +17,8 @@ jobs:
docs: docs:
name: Docs name: Docs
uses: ./.github/workflows/docs.yaml uses: ./.github/workflows/docs.yaml
secrets:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
test: test:
+6
View File
@@ -2,6 +2,9 @@ name: Docs
on: on:
workflow_call: workflow_call:
secrets:
CACHIX_AUTH_TOKEN:
required: false
pull_request: pull_request:
branches: branches:
- main - main
@@ -28,6 +31,7 @@ jobs:
- name: Setup Nix Environment - name: Setup Nix Environment
uses: ./.github/actions/setup-nix uses: ./.github/actions/setup-nix
with: with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: docs tools: docs
- run: postgrest-docs-build - run: postgrest-docs-build
- run: git diff --exit-code HEAD locales || echo "Please commit changes to the locales/ folder after running postgrest-docs-build." - run: git diff --exit-code HEAD locales || echo "Please commit changes to the locales/ folder after running postgrest-docs-build."
@@ -41,6 +45,7 @@ jobs:
- name: Setup Nix Environment - name: Setup Nix Environment
uses: ./.github/actions/setup-nix uses: ./.github/actions/setup-nix
with: with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: docs tools: docs
- name: Run spellcheck - name: Run spellcheck
run: postgrest-docs-spellcheck run: postgrest-docs-spellcheck
@@ -57,5 +62,6 @@ jobs:
- name: Setup Nix Environment - name: Setup Nix Environment
uses: ./.github/actions/setup-nix uses: ./.github/actions/setup-nix
with: with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: docs tools: docs
- run: postgrest-docs-linkcheck - run: postgrest-docs-linkcheck
+1
View File
@@ -132,6 +132,7 @@ jobs:
- name: Setup Nix Environment - name: Setup Nix Environment
uses: ./.github/actions/setup-nix uses: ./.github/actions/setup-nix
with: with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: loadtest tools: loadtest
- uses: WyriHaximus/github-action-get-previous-tag@04e8485ecb6487243907e330d522ff60f02283ce # v1.4.0 - uses: WyriHaximus/github-action-get-previous-tag@04e8485ecb6487243907e330d522ff60f02283ce # v1.4.0
id: get-latest-tag id: get-latest-tag