Skip to content

Commit d37e6f6

Browse files
committed
Change paths
1 parent 05cc9bc commit d37e6f6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { exec } from '@actions/exec'
44
import { execSync } from 'child_process'
55
import { valid as validSemver } from 'semver'
66
import { desc as semverSort } from 'semver-sort'
7-
import { resolve } from 'path'
87

98
const {
109
GITHUB_ACTOR,
@@ -17,7 +16,6 @@ const {
1716
(async () => {
1817
try {
1918
const options = {
20-
cwd: resolve(__dirname, '..'),
2119
env: {
2220
HOME: HOME || '',
2321
refName: GITHUB_REF?.split('/').pop() || '',
@@ -32,7 +30,7 @@ const {
3230
if (sourceType == 'tag' && validSemver(refName) && refName == getLastTag())
3331
options.env.updateLatest = 'yes'
3432

35-
await exec(await which('bash', true), ['src/deploy.sh'], options)
33+
await exec(await which('bash', true), ['../src/deploy.sh'], options)
3634
}
3735
catch (e) {
3836
const error =

0 commit comments

Comments
 (0)