Files
setup-zig/post.js
T
2024-06-08 15:59:13 +01:00

17 lines
423 B
JavaScript

const core = require('@actions/core');
const github = require('@actions/github');
const cache = require('@actions/cache');
const common = require('./common');
async function main() {
try {
const prefix = await common.getCachePrefix();
const name = prefix + github.context.runId;
await cache.saveCache([await common.getZigCachePath()], name);
} catch (err) {
core.setFailed(err.message);
}
}
main();