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
Nick Novitski
d568766b74
Merge pull request #2 from nicknovitski/dependabot/github_actions/cachix/install-nix-action-23
...
chore(deps): bump cachix/install-nix-action from 22 to 23
2023-10-28 09:05:07 -07:00
Nick Novitski
297b769f73
chore: Document
2023-10-28 09:01:57 -07:00
dependabot[bot]
253e364265
chore(deps): bump cachix/install-nix-action from 22 to 23
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23 )
---
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-10-20 01:30:51 +00:00
Nick Novitski
611afb0051
Merge pull request #1 from nicknovitski/test-more-things
...
Test on macos-* runners and fix
2023-10-19 18:30:21 -07:00
Nick Novitski
2527420523
chore: Create dependabot.yml
2023-10-19 18:29:59 -07:00
Nick Novitski
e8d0a33c87
chore: Test on MacOS and with Determinate installer
2023-10-19 17:49:28 -07:00
Nick Novitski
9342b170fb
fix: Runs on MacOS runners
2023-10-19 17:49:28 -07:00
Nick Novitski
2cd3e161f5
fix: Fail if build fails!
...
The pipefail option does not catch usage from subshells like this:
```
echo <<<"$(echo foo; exit 1)"
```
Since that's how `nix develop` is called in the script, when the action
could not build an environment, it would still be treated as having run
successfully, and the job would continue.
It's still hypothetically possible for this to happen if `env` or `bash
-c 'echo $PATH'` fail. Seems unlikely! But maybe there's something to
be done there.
2023-10-19 10:15:04 -07:00
Nick Novitski
f33559582d
fix: Pass arguments
...
The INPUTS_* environment variables are not present in composite actions.
A flag interface seems more intuitive for local testing too.
2023-10-19 10:13:44 -07:00
Nick Novitski
c6e9a101ae
feat: Don't add nonexistent directories to PATH
2023-10-18 22:11:13 -07:00
Nick Novitski
a30a7fa1b3
feat: Don't add empty or already-set variables
2023-10-18 22:09:38 -07:00
Nick Novitski
645aeb5651
feat: detect and fail on invalid delimiters
2023-10-18 20:52:41 -07:00
Nick Novitski
fa86b00e2a
fix: support --keep
flag in arguments
...
Achieved by consistently using `--ignore-environment` flag, even though
that's not strictly necessary.
Fixes using devenv, which requires `--keep PATH` to run its shellhook.
2023-10-18 20:37:01 -07:00
Nick Novitski
e10b9cffe9
Initial commit
2023-10-18 16:57:10 -07:00