Skip to content

Updated assistant.md #93

Updated assistant.md

Updated assistant.md #93

Workflow file for this run

on:
pull_request:
push:
branches: [main, beta]
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
git-head: ${{ steps.git-push.outputs.head-sha }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- run: nix fmt
- uses: cihelper/action-git-push@v1
id: git-push
with:
commit-message: "chore: reformat code"
check:
runs-on: ubuntu-latest
needs: format
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.format.outputs.git-head }}
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- run: nix flake check --show-trace
release:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'recap-utr' && github.event_name == 'push' }}
needs:
- check
- format
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.format.outputs.git-head }}
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: cihelper/action-semanticrelease-npm@v1
id: semanticrelease
- run: nix run .#dockerManifest --impure
if: ${{ steps.semanticrelease.outputs.released == 'true' }}
env:
VERSION: ${{ steps.semanticrelease.outputs.version }}
GH_TOKEN: ${{ github.token }}