Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankilevitch committed Jan 2, 2024
1 parent 27d4686 commit c7f2321
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/upload-integration-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
paths:
# we only want to run this workflow when changes are made to the integrations folder
- integrations/**
pull_request:

# when running the workflow manually upload to stg bucket
workflow_dispatch:
Expand Down Expand Up @@ -36,10 +37,10 @@ jobs:
- name: resolve the aws s3 bucket name
id: resolve-bucket-name
run: |
if [[ "${{ github.event_name }}" == "push"; then
if [[ "${{ github.event_name }}" == "push" ]]; then
echo "bucket_name=advance-templates" >> $GITHUB_OUTPUT
else:
echo "bucket_name=advance-templates-${{ github.event.inputs.bucket_environment }}" >> $GITHUB_OUTPUT
echo "bucket_name=advance-templates-stg-01" >> $GITHUB_OUTPUT
fi
- name: Upload specifications to s3
run: aws s3 cp integrations/ "s3://${{ steps.resolve-bucket-name.output.bucket_name }}/integrations" --recursive

0 comments on commit c7f2321

Please sign in to comment.