From 2e5a9678d1e7d0535b8b90ee773ad9aa29ec8732 Mon Sep 17 00:00:00 2001 From: Everaldo Date: Fri, 16 Aug 2024 10:16:15 -0700 Subject: [PATCH] Fix identation. --- .github/workflows/scheduled_tests.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/scheduled_tests.yml b/.github/workflows/scheduled_tests.yml index 340ccc2b..4c433819 100644 --- a/.github/workflows/scheduled_tests.yml +++ b/.github/workflows/scheduled_tests.yml @@ -61,15 +61,15 @@ jobs: source .venv/bin/activate echo "Fetching BUILD_VERSION_S3 from S3..." export BUILD_VERSION_S3=$(python -c " - import boto3 - import os - s3 = boto3.client('s3') - try: - s3.download_file('biothings-codebuild', '${{ env.BUILD_VERSION_FILE }}', '${{ env.BUILD_VERSION_FILE }}') - with open('${{ env.BUILD_VERSION_FILE }}', 'r') as file: - print(file.read().strip()) - except Exception as e: - print('No ${{ env.BUILD_VERSION_FILE }} found in S3, assuming first run.') + import boto3 + import os + s3 = boto3.client('s3') + try: + s3.download_file('biothings-codebuild', '${{ env.BUILD_VERSION_FILE }}', '${{ env.BUILD_VERSION_FILE }}') + with open('${{ env.BUILD_VERSION_FILE }}', 'r') as file: + print(file.read().strip()) + except Exception as e: + print('No ${{ env.BUILD_VERSION_FILE }} found in S3, assuming first run.') ") echo "BUILD_VERSION_S3=$BUILD_VERSION_S3" >> $GITHUB_ENV @@ -98,9 +98,9 @@ jobs: echo "Storing new BUILD_VERSION_S3 to S3..." echo "${{ env.BUILD_VERSION_HUB }}" > ${{ env.BUILD_VERSION_FILE }} python -c " - import boto3 - s3 = boto3.client('s3') - s3.upload_file('${{ env.BUILD_VERSION_FILE }}', 'biothings-codebuild', '${{ env.BUILD_VERSION_FILE }}') + import boto3 + s3 = boto3.client('s3') + s3.upload_file('${{ env.BUILD_VERSION_FILE }}', 'biothings-codebuild', '${{ env.BUILD_VERSION_FILE }}') " # - name: Setup tmate debug session on failure