templates #43
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: "templates" | |
on: | |
workflow_run: | |
workflows: ["OCI"] | |
types: | |
- completed | |
jobs: | |
Sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: nixbuild/nix-quick-install-action@v25 | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: init the template.default | |
run: | | |
mkdir -p ./template && cd ./template | |
nix flake init -t ..#templates.default | |
- name: Deploy template | |
uses: JamesIves/[email protected] | |
with: | |
branch: template | |
folder: ./template |