Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeressian committed Feb 14, 2024
1 parent 95cef90 commit 0a09404
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Deploy
uses: ayeressian/bunnycdn-storage-deploy@master
uses: ayeressian/bunnycdn-storage-deploy@test-failed-deploy
with:
source: "e2e/test-dir"
storageZoneName: "${{ secrets.STORAGE_NAME_TEST }}"
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getInput, setFailed, info } from "@actions/core";
import { getInput, setFailed, info, error } from "@actions/core";
import { join, isAbsolute } from "path";
import Uploader from "./uploader";
import purge from "./purge";
Expand Down Expand Up @@ -29,8 +29,9 @@ class Main {
await this.remove();
await this.upload();
await this.purge();
} catch (error) {
setFailed(error as string | Error);
} catch (err) {
error(err as string);
setFailed(err as string | Error);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default class Uploader {
info(
`Deploying ${entry.path} by https://${this.storageEndpoint}/${this.storageName}/${destination}`
);
throw new Error("TEST TEST");
const response = await fetch(
`https://${this.storageEndpoint}/${this.storageName}/${destination}`,
{
Expand Down

0 comments on commit 0a09404

Please sign in to comment.