diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6daebbf..af3e503 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/new-release.yml b/.github/workflows/new-release.yml new file mode 100644 index 0000000..cef7065 --- /dev/null +++ b/.github/workflows/new-release.yml @@ -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 }} diff --git a/README.md b/README.md index 35e8dec..002394e 100644 --- a/README.md +++ b/README.md @@ -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" ``` diff --git a/nix-develop-gha.sh b/nix-develop-gha.sh index 762cb81..5d30db8 100755 --- a/nix-develop-gha.sh +++ b/nix-develop-gha.sh @@ -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