Skip to content

Commit

Permalink
fix: ubuntu-24-pip (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: bluebrown <[email protected]>
  • Loading branch information
bluebrown authored Oct 10, 2024
1 parent da1d638 commit c24eddd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26907,7 +26907,11 @@ 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 {
execSync("/bin/bash -c 'pip3 install s3cmd --no-cache --break-system-packages'")
} catch {
execSync("/bin/bash -c 'pip3 install s3cmd --no-cache'")
}

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

execSync("/bin/bash -c 'pip3 install s3cmd --no-cache'")
try {
execSync("/bin/bash -c 'pip3 install s3cmd --no-cache --break-system-packages'")
} catch {
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 c24eddd

Please sign in to comment.