Skip to content

Commit

Permalink
fix: use new install method for global pip packages
Browse files Browse the repository at this point in the history
Signed-off-by: bluebrown <[email protected]>
  • Loading branch information
bluebrown committed Oct 9, 2024
1 parent da1d638 commit e4d452f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26907,7 +26907,13 @@ const { execSync } = __nccwpck_require__(2081);
const { createWriteStream } = __nccwpck_require__(7147)
const { providers, makeConf } = __nccwpck_require__(8842)

execSync("/bin/bash -c 'pip3 install s3cmd --no-cache'")
try {
// most will use ubuntu-latest
execSync("/bin/bash -c 'apt-get -y install python-s3cmd'")
} catch {
// we can still try to help the others
execSync("/bin/bash -c 'pip3 install s3cmd --no-cache'")
}

const conf = makeConf(providers[core.getInput('provider')]({
region: core.getInput("region"),
Expand Down
8 changes: 7 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ const { execSync } = require('child_process');
const { createWriteStream } = require('fs')
const { providers, makeConf } = require('./providers')

execSync("/bin/bash -c 'pip3 install s3cmd --no-cache'")
try {
// most will use ubuntu-latest
execSync("/bin/bash -c 'apt-get -y install python3-s3cmd'")
} catch {
// we can still try to help the others
execSync("/bin/bash -c 'pip3 install s3cmd --no-cache'")
}

const conf = makeConf(providers[core.getInput('provider')]({
region: core.getInput("region"),
Expand Down

0 comments on commit e4d452f

Please sign in to comment.