Skip to content

Home: clean up potential trailing newline from nix eval #100

Home: clean up potential trailing newline from nix eval

Home: clean up potential trailing newline from nix eval #100

Workflow file for this run

name: Tag version
concurrency: tag
on:
workflow_dispatch:
push:
branches:
- master
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@master
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
name: Checkout
- run: |
echo -n "nh_version=v" >> "$GITHUB_ENV"
nix run nixpkgs#fq -- -r ".package.version" Cargo.toml >> "$GITHUB_ENV"
cat "$GITHUB_ENV"
name: Read version
- name: Tag
run: |
set -x
git tag $nh_version
git push --tags || :