Skip to content

Pin releases on cachix #1

Pin releases on cachix

Pin releases on cachix #1

Workflow file for this run

name: "Pin release on Cachix"
on:
workflow_dispatch:
inputs:
tag:
description: "The existing tag to build and pin"
type: "string"
required: true
workflow_call:
secrets:
GITHUB_TOKEN:

Check failure on line 13 in .github/workflows/pin.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pin.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: false
CACHIX_AUTH_TOKEN:
required: true
jobs:
pin:
if: startsWith(github.ref, "refs/tags/v")
matrix:
os: [[ubuntu-latest], [macos-latest], [self-hosted, macOS], [nscloud-arm64]]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: devenv
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Pin release
run: cachix pin devenv ${{ github.ref_name }} $(nix build --accept-flake-config --print-out-paths)