mirror of
https://codeberg.org/icewind/attic-action.git
synced 2026-06-04 01:54:08 +02:00
Add pushFilter to allow filtering cache derivations
This allows filtering derivations to be pushed via an optional `pushFilter` variable. The use case behind it is to not push the actually built derivation, but only runtime and build dependencies. Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
This commit is contained in:
parent
26cfe1ed98
commit
f1560b98ab
4 changed files with 13 additions and 3 deletions
|
|
@ -10,6 +10,7 @@ const extraPullNames = core.getInput('extraPullNames');
|
|||
const signingKey = core.getInput('signingKey');
|
||||
const authToken = core.getInput('authToken')
|
||||
const skipPush = core.getInput('skipPush');
|
||||
const pushFilter = core.getInput('pushFilter');
|
||||
const cachixExecutable = process.env.HOME + '/.nix-profile/bin/cachix';
|
||||
const installCommand =
|
||||
core.getInput('installCommand') ||
|
||||
|
|
@ -56,7 +57,7 @@ async function upload() {
|
|||
if (skipPush === 'true') {
|
||||
core.info('Pushing is disabled as skipPush is set to true');
|
||||
} else if (signingKey !== "" || authToken !== "") {
|
||||
await exec.exec(`${__dirname}/push-paths.sh`, [cachixExecutable, name]);
|
||||
await exec.exec(`${__dirname}/push-paths.sh`, [cachixExecutable, name, pushFilter]);
|
||||
} else {
|
||||
core.info('Pushing is disabled as signing key nor auth token are set.');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue