Skip to content

Commit

Permalink
🐛 fix: Format S3 and precommit output
Browse files Browse the repository at this point in the history
  • Loading branch information
gsuquet committed Dec 13, 2023
1 parent 373c063 commit 3d5c06b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/deployment-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ on:
workflow_call:
inputs:
aws_region:
description: 'AWS region'
description: AWS region
required: false
type: string
default: eu-west-1
files_path:
description: 'The path to the files to copy'
description: The path to the files to copy
required: false
type: string
default: .
artifact_name:
description: 'The name of the artifact to download'
description: The name of the artifact to download
required: false
type: string
secrets:
Expand All @@ -31,20 +31,20 @@ jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
if: ${{ inputs.artifact_name }}
uses: actions/download-artifact@v3
with:
name: ${{ inputs.artifact_name }}
path: ${{ inputs.files_path }}
- name: Download artifacts
if: ${{ inputs.artifact_name }}
uses: actions/download-artifact@v3
with:
name: ${{ inputs.artifact_name }}
path: ${{ inputs.files_path }}

- name: Copy files to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
run: |
aws s3 cp \
--recursive \
--region ${{ inputs.aws_region }} \
${{ inputs.files_path }} \
s3://${{ secrets.bucket_path }}
- name: Copy files to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
run: |
aws s3 cp \
--recursive \
--region ${{ inputs.aws_region }} \
${{ inputs.files_path }} \
s3://${{ secrets.bucket_path }}
2 changes: 1 addition & 1 deletion .github/workflows/integration-linter-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
echo "If you think this is a false positive, please open an issue on the [GitHub repository](https://github.com/gsuquet/workflows/issues/new?assignees=&labels=bug%2Cto+sort&projects=&template=bug_report.yml)." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
else
echo "## :white_check_mark: Pre-commit checks passed :white_check_mark:\n" >> $GITHUB_STEP_SUMMARY
echo "## :white_check_mark: Pre-commit checks passed :white_check_mark:" >> $GITHUB_STEP_SUMMARY
fi
# Exclude lines that don't end with Passed, Skipped or Failed
Expand Down

0 comments on commit 3d5c06b

Please sign in to comment.