Skip to content

Commit

Permalink
Merge pull request #36 from Pospelove/fix-absolute-source
Browse files Browse the repository at this point in the history
Fix absolute source paths
  • Loading branch information
ayeressian committed May 27, 2023
2 parents b572cc9 + 3f832ff commit 19c5f2c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Pull zone ID.

```
- name: Deploy to BunnyCDN
uses: ayeressian/bunnycdn-storage-deploy@v=2.0.1
uses: ayeressian/bunnycdn-storage-deploy@v2.0.2
with:
source: "dist"
storageZoneName: "${{ secrets.STORAGE_NAME }}"
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.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bunnycdn-storage-deploy",
"version": "2.0.1",
"version": "2.0.2",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { getInput, setFailed, info } from "@actions/core";
import { join } from "path";
import { join, isAbsolute } from "path";
import uploader from "./uploader";
import purge from "./purge";
import remove from "./remove";

const run = async () => {
try {
const source = join(
const sourceRaw = getInput("source");
const source = isAbsolute(sourceRaw) ? sourceRaw : join(
process.env.GITHUB_WORKSPACE as string,
getInput("source")
sourceRaw
);
const storageZoneName = getInput("storageZoneName");
const storageEndpoint =
Expand Down

0 comments on commit 19c5f2c

Please sign in to comment.