File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,10 @@ jobs:
2323 - name : install nix
2424 uses : cachix/install-nix-action@v31
2525 with :
26- nix_path : nixpkgs=channel:nixos-unstable
27- - uses : cachix/cachix-action@v14
26+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
27+ - uses : cachix/cachix-action@v16
2828 with :
2929 name : devenv
30- env :
31- USER : root
3230 - name : Install devenv.sh
3331 run : nix profile install nixpkgs#devenv
3432 - name : Setup go
3836 env :
3937 GITHUB_TOKEN : ${{ secrets.GH_PAT_TOKEN }}
4038 - name : Bump version and push tag
41- shell : bash -c ' nix develop --no-pure-eval -c {0}'
39+ shell : bash -c -- ''' nix develop --no-pure-eval {0}'' '
4240 run : |
4341 git config --global user.email "actions@github.com"
4442 git config --global user.name "Github Actions"
@@ -48,13 +46,14 @@ jobs:
4846 [ "$OLD_TAG" == "$NEW_TAG" ] && echo "no version bump" && exit 0
4947 echo default.nix README.md | xargs sed -i "s/$(svu current)/$(svu next)/g"
5048 go mod vendor
51- sed -i "s|vendorHash = \".*\"|vendorHash = \"$(nix hash path ./vendor | tr --delete '\n' )\"|g" default.nix
49+ sed -i "s|vendorHash = \".*\"|vendorHash = \"$(nix hash path ./vendor)\"|g" default.nix
5250 git add default.nix main.go README.md
5351 git commit -m "bump release version" --allow-empty
5452 git tag v$NEW_TAG
5553 git tag $NEW_TAG
5654 git push
57- git push --tags
55+ git push --tags
56+
5857 - name : Run GoReleaser
5958 uses : goreleaser/goreleaser-action@v4
6059 with :
You can’t perform that action at this time.
0 commit comments