Compare commits

...

12 commits
v1.0.0 ... main

Author SHA1 Message Date
xin
993e93af9e Update nix-develop-gha.sh 2024-04-05 04:47:05 +00:00
Nick Novitski
290301ab99
Merge pull request from nicknovitski/dependabot/github_actions/cachix/install-nix-action-25
chore(deps): bump cachix/install-nix-action from 24 to 25
2024-02-16 15:17:03 -08:00
dependabot[bot]
984f5bf6bc
chore(deps): bump cachix/install-nix-action from 24 to 25
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 24 to 25.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v24...v25)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-15 15:24:09 +00:00
Nick Novitski
b9531c0ce0
Merge pull request from nicknovitski/dependabot/github_actions/cachix/install-nix-action-24
chore(deps): bump cachix/install-nix-action from 23 to 24
2023-12-13 13:07:00 -08:00
Nick Novitski
d7063eff4d
Merge pull request from nicknovitski/dependabot/github_actions/actions/publish-action-0.3.0
chore(deps): bump actions/publish-action from 0.2.2 to 0.3.0
2023-12-13 13:05:28 -08:00
dependabot[bot]
4f4a58bfb2
chore(deps): bump actions/publish-action from 0.2.2 to 0.3.0
Bumps [actions/publish-action](https://github.com/actions/publish-action) from 0.2.2 to 0.3.0.
- [Commits](https://github.com/actions/publish-action/compare/v0.2.2...v0.3.0)

---
updated-dependencies:
- dependency-name: actions/publish-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 15:37:15 +00:00
dependabot[bot]
a02cd6078e
chore(deps): bump cachix/install-nix-action from 23 to 24
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 24.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 15:59:00 +00:00
Nick Novitski
a2060d116a Don't --ignore-environment
This leads to some surprising behavior, and I don't think it gives the benefits I thought it would.
2023-11-07 20:40:01 -08:00
Nick Novitski
66628a83db chore: Add workflow to keep major tags up-to-date 2023-10-31 08:19:08 -07:00
Nick Novitski
b01c276b7e
fix: add missing "v"s in readme 2023-10-30 18:27:13 -07:00
Nick Novitski
db9709622d
Revert name change 2023-10-28 09:16:17 -07:00
Nick Novitski
7e687c24bc
chore: consistent naming in action.yml 2023-10-28 09:09:50 -07:00
4 changed files with 18 additions and 5 deletions

View file

@ -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
View 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 }}

View file

@ -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"
```

View file

@ -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