-
-
Notifications
You must be signed in to change notification settings - Fork 92
32 lines (26 loc) · 645 Bytes
/
tag.yaml
File metadata and controls
32 lines (26 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 || :