Compare commits
12 commits
Author | SHA1 | Date | |
---|---|---|---|
993e93af9e | |||
|
290301ab99 | ||
|
984f5bf6bc | ||
|
b9531c0ce0 | ||
|
d7063eff4d | ||
|
4f4a58bfb2 | ||
|
a02cd6078e | ||
|
a2060d116a | ||
|
66628a83db | ||
|
b01c276b7e | ||
|
db9709622d | ||
|
7e687c24bc |
4 changed files with 18 additions and 5 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
|||
runs-on: ${{ matrix.runs-on }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v23
|
||||
- uses: cachix/install-nix-action@v25
|
||||
- uses: ./
|
||||
- run: actionlint
|
||||
- run: shellcheck nix-develop-gha.sh
|
||||
|
|
13
.github/workflows/new-release.yml
vendored
Normal file
13
.github/workflows/new-release.yml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
name: Release new version
|
||||
on:
|
||||
release:
|
||||
types: [released]
|
||||
permissions:
|
||||
contents: write
|
||||
jobs:
|
||||
update-major-tag:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/publish-action@v0.3.0
|
||||
with:
|
||||
source-tag: ${{ github.event.release.tag_name }}
|
|
@ -60,7 +60,7 @@ In other words, rather than [this](https://github.com/DeterminateSystems/nix-git
|
|||
|
||||
...you can do this:
|
||||
```yaml
|
||||
- uses: nicknovitski/nix-develop@1
|
||||
- uses: nicknovitski/nix-develop@v1
|
||||
- run: cargo fmt --check
|
||||
- run: cargo-deny check
|
||||
- run: eclint \
|
||||
|
@ -73,7 +73,7 @@ In other words, rather than [this](https://github.com/DeterminateSystems/nix-git
|
|||
You can also pass arbitrary arguments, like using another flake reference:
|
||||
|
||||
```yaml
|
||||
- uses: nicknovitski/nix-develop@1
|
||||
- uses: nicknovitski/nix-develop@v1
|
||||
with:
|
||||
arguments: "github:DeterminateSystems/zero-to-nix#multi"
|
||||
```
|
||||
|
|
|
@ -6,7 +6,7 @@ set -euo pipefail
|
|||
IFS=" " read -r -a arguments <<<"${@:-./#default}"
|
||||
|
||||
with_nix_develop() {
|
||||
nix develop --ignore-environment "${arguments[@]}" --command "$@"
|
||||
nix develop "${arguments[@]}" --command "$@"
|
||||
}
|
||||
|
||||
with_nix_develop true # Exit immediately if build fails
|
||||
|
@ -26,7 +26,7 @@ while IFS='=' read -r -d '' n v; do
|
|||
continue
|
||||
fi
|
||||
if (("$(wc -l <<<"$v")" > 1)); then
|
||||
delimiter=$(openssl rand -base64 18)
|
||||
delimiter=BzcqNQnW6x7hfGlLbvCyDlvD
|
||||
if contains "$delimiter" "$v"; then
|
||||
echo "Environment variable $n contains randomly generated string $delimiter, file an issue and buy a lottery ticket."
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue