Skip to content

Commit

Permalink
Add DFXVM_INIT_YES flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed Mar 17, 2024
1 parent 756fa1a commit 7e64c71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
on:
schedule:
- cron: '30 1 1,15 * *' # Run at 01:30 on the 1st and 15th day of the month.

jobs:
test_schedule:
strategy:
Expand All @@ -10,9 +9,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: |
latest=$(curl -s 'https://raw.githubusercontent.com/dfinity/sdk/master/public/manifest.json' | jq -r '.tags.latest')
echo "LATEST=$latest" >> "$GITHUB_ENV"
- uses: ./
with:
dfx-version: latest
dfx-version: ${{ env.LATEST }}
install-moc: true
vessel-version: 0.7.0
- run: |
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function run() {
// Opt-out of having data collected about dfx usage.
core.exportVariable('DFX_TELEMETRY_DISABLED', 1);
// Install dfx.
child_process_1.default.execSync(`DFX_VERSION=${dfxVersion} sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"`);
child_process_1.default.execSync(`DFX_VERSION=${dfxVersion} DFXVM_INIT_YES=true sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"`);
const dfxPath = yield io.which('dfx');
core.debug(dfxPath);
infoExec(`${dfxPath} --version`);
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function run() {
core.exportVariable('DFX_TELEMETRY_DISABLED', 1);

// Install dfx.
cp.execSync(`DFX_VERSION=${dfxVersion} sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"`);
cp.execSync(`DFX_VERSION=${dfxVersion} DFXVM_INIT_YES=true sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"`);

const dfxPath = await io.which('dfx');
core.debug(dfxPath);
Expand Down

0 comments on commit 7e64c71

Please sign in to comment.