From 494d6259d07d7f1af47aaabaa98f32e6ca81c7fa Mon Sep 17 00:00:00 2001 From: KasukabeDefenceForce Date: Mon, 28 Oct 2024 19:53:47 +0530 Subject: [PATCH] Cleanup codestyle workflow (#2860) remove redundant environment setup steps with setup_env action --- .github/workflows/codestyle.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 3676fcadc62..683c68901af 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -32,24 +32,10 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - - - name: Download Lock File - run: wget -q https://raw.githubusercontent.com/tardis-sn/tardis/master/conda-linux-64.lock - - - name: Generate Cache Key - run: | - file_hash=$(cat conda-linux-64.lock | shasum -a 256 | cut -d' ' -f1) - echo "file_hash=$file_hash" >> "${GITHUB_OUTPUT}" - id: cache-environment-key - - - uses: mamba-org/setup-micromamba@v1 + - name: Setup environment + uses: ./.github/actions/setup_env with: - environment-file: conda-linux-64.lock - cache-environment-key: ${{ steps.cache-environment-key.outputs.file_hash }} - cache-downloads-key: ${{ steps.cache-environment-key.outputs.file_hash }} - environment-name: tardis - cache-environment: true - cache-downloads: true + os-label: linux-64 - name: Show statistics pull request if: github.event_name == 'pull_request_target'