diff --git a/packages/sui-test-contract/bin/sui-test-contract-publish.js b/packages/sui-test-contract/bin/sui-test-contract-publish.js index a4375375d..58c7d2e34 100644 --- a/packages/sui-test-contract/bin/sui-test-contract-publish.js +++ b/packages/sui-test-contract/bin/sui-test-contract-publish.js @@ -18,7 +18,7 @@ program const {brokerUrl} = program.opts() if (!brokerUrl) throw new Error('You need to specify the broker URL where the contracts will be published.') const contractsDir = path.resolve(process.cwd(), 'contract/documents') -const {GHA_REF, GITHUB_REF, GITHUB_SHA, TRAVIS_PULL_REQUEST_BRANCH, TRAVIS_BRANCH, TRAVIS_COMMIT, TRAVIS_PULL_REQUEST_SHA} = +const {GHA_REF, GITHUB_REF, GHA_SHA, GITHUB_SHA, TRAVIS_PULL_REQUEST_BRANCH, TRAVIS_BRANCH, TRAVIS_COMMIT, TRAVIS_PULL_REQUEST_SHA} = process.env const branch = TRAVIS_PULL_REQUEST_BRANCH || TRAVIS_BRANCH || GHA_REF || GITHUB_REF || exec('git rev-parse --abbrev-ref HEAD')