Home: clean up potential trailing newline from nix eval #100
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: 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 || : |