Mirror nix-community/disko@v1.10.0 #725
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Mirror a repo's latest tag to FlakeHub." | |
run-name: Mirror ${{ inputs.repo }}@${{ inputs.tag }} | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: "The tag to publish." | |
type: "string" | |
required: true | |
repo: | |
description: "The repo to publish, in the format of Owner/Repo." | |
type: "string" | |
required: true | |
jobs: | |
flakehub-publish: | |
runs-on: "ubuntu-latest" | |
permissions: | |
id-token: "write" | |
contents: "read" | |
steps: | |
- uses: "actions/checkout@v4" | |
with: | |
repository: ${{ inputs.repo }} | |
ref: ${{ inputs.tag }} | |
- uses: "DeterminateSystems/nix-installer-action@main" | |
- uses: "DeterminateSystems/magic-nix-cache-action@main" | |
- uses: "DeterminateSystems/flakehub-push@main" | |
with: | |
mirror: true | |
visibility: public | |
repository: ${{ inputs.repo }} | |
tag: ${{ inputs.tag }} | |
log-directives: flakehub_push=trace | |
logger: pretty |