mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-27 01:30:35 +01:00
Regenerate dist
This commit is contained in:
parent
cfa539aa36
commit
148bd72756
2 changed files with 7 additions and 4 deletions
9
dist/index.js
generated
vendored
9
dist/index.js
generated
vendored
|
@ -94816,7 +94816,6 @@ var MagicNixCacheAction = class {
|
||||||
limit: 1,
|
limit: 1,
|
||||||
methods: ["POST", "GET", "PUT", "HEAD", "DELETE", "OPTIONS", "TRACE"]
|
methods: ["POST", "GET", "PUT", "HEAD", "DELETE", "OPTIONS", "TRACE"]
|
||||||
},
|
},
|
||||||
resolveBodyOnly: false,
|
|
||||||
hooks: {
|
hooks: {
|
||||||
beforeRetry: [
|
beforeRetry: [
|
||||||
(error, retryCount) => {
|
(error, retryCount) => {
|
||||||
|
@ -94997,7 +94996,9 @@ var MagicNixCacheAction = class {
|
||||||
try {
|
try {
|
||||||
core.debug(`Indicating workflow start`);
|
core.debug(`Indicating workflow start`);
|
||||||
const hostAndPort = inputs_exports.getString("listen");
|
const hostAndPort = inputs_exports.getString("listen");
|
||||||
const res = await this.client.post(`http://${hostAndPort}/api/workflow-start`).json();
|
const res = await this.client.post(
|
||||||
|
`http://${hostAndPort}/api/workflow-start`
|
||||||
|
);
|
||||||
if (res.statusCode !== 200) {
|
if (res.statusCode !== 200) {
|
||||||
this.failInStrictMode(
|
this.failInStrictMode(
|
||||||
`Failed to trigger workflow start hook; expected status 200 but got ${res.statusCode}`
|
`Failed to trigger workflow start hook; expected status 200 but got ${res.statusCode}`
|
||||||
|
@ -95028,7 +95029,9 @@ var MagicNixCacheAction = class {
|
||||||
try {
|
try {
|
||||||
core.debug(`about to post to localhost`);
|
core.debug(`about to post to localhost`);
|
||||||
const hostAndPort = inputs_exports.getString("listen");
|
const hostAndPort = inputs_exports.getString("listen");
|
||||||
const res = await this.client.post(`http://${hostAndPort}/api/workflow-finish`).json();
|
const res = await this.client.post(
|
||||||
|
`http://${hostAndPort}/api/workflow-finish`
|
||||||
|
);
|
||||||
if (res.statusCode !== 200) {
|
if (res.statusCode !== 200) {
|
||||||
this.failInStrictMode(
|
this.failInStrictMode(
|
||||||
`Failed to trigger workflow finish hook; expected status 200 but got ${res.statusCode}`
|
`Failed to trigger workflow finish hook; expected status 200 but got ${res.statusCode}`
|
||||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue