Skip to content

Commit

Permalink
fix: make downloaded bin executable (#8)
Browse files Browse the repository at this point in the history
* docs

* make downloaded bin executable
  • Loading branch information
HarryGogonis committed Sep 25, 2020
1 parent 0f40b6e commit 33bf562
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as core from '@actions/core'
import {chmodSync} from 'fs'
import {getConfig} from './config'
import {getTool} from './tool'

Expand All @@ -7,6 +8,7 @@ async function run(): Promise<void> {
const config = getConfig()
const tool = await getTool(config)
core.addPath(tool)
chmodSync(tool, '755')
} catch (error) {
core.setFailed(error.message)
}
Expand Down

0 comments on commit 33bf562

Please sign in to comment.