diff --git a/.github/workflows/upload-integration-templates.yaml b/.github/workflows/upload-integration-templates.yaml index 61b27a4..315e9fe 100644 --- a/.github/workflows/upload-integration-templates.yaml +++ b/.github/workflows/upload-integration-templates.yaml @@ -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: @@ -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