From 5c94c6ad4f354df6801b086040aaf03f1414c6c8 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Mon, 10 Oct 2022 05:18:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/images.yml | 5 +++-- .github/workflows/release.yml | 8 +++----- bin/cml/runner/launch.js | 11 ++--------- 3 files changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index 5b347d9d09..7fee34cb4c 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -94,8 +94,9 @@ jobs: - uses: docker/build-push-action@v2 with: push: - ${{ inputs.release || github.event_name == 'push' || github.event_name == 'schedule' - || github.event_name == 'workflow_dispatch' }} + ${{ inputs.release || github.event_name == 'push' || + github.event_name == 'schedule' || github.event_name == + 'workflow_dispatch' }} context: ./ file: ./Dockerfile tags: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16e7c0c773..447843150d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,11 +31,9 @@ jobs: steps: - uses: actions/checkout@v3 - run: > - gh release create - --target ${{ github.event.pull_request.merge_commit_sha }} - {--title=CML\ ,}$(basename ${{ github.head_ref }}) - --generate-notes - --draft + gh release create --target ${{ + github.event.pull_request.merge_commit_sha }} {--title=CML\ + ,}$(basename ${{ github.head_ref }}) --generate-notes --draft env: GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} package: diff --git a/bin/cml/runner/launch.js b/bin/cml/runner/launch.js index 86caf8be5b..8b568db125 100755 --- a/bin/cml/runner/launch.js +++ b/bin/cml/runner/launch.js @@ -338,15 +338,8 @@ const run = async (opts) => { process.on(signal, () => shutdown({ ...opts, reason: signal })); }); - const { - workdir, - cloud, - labels, - name, - reuse, - reuseIdle, - dockerVolumes - } = opts; + const { workdir, cloud, labels, name, reuse, reuseIdle, dockerVolumes } = + opts; await cml.repoTokenCheck();