Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to run noelware/s3-action: Invalid URL #841

Open
tayloraswift opened this issue Nov 22, 2024 · 1 comment
Open

failed to run noelware/s3-action: Invalid URL #841

tayloraswift opened this issue Nov 22, 2024 · 1 comment

Comments

@tayloraswift
Copy link

i am trying to use the action with these parameters:

https://github.com/tayloraswift/swift-ip/blob/2bd4a61170972eaf747e51343fed98cfcee55866/.github/workflows/Package.yml#L26-L35

            -   name: Upload products
                uses: Noelware/s3-action@2.2.6
                with:
                    access-key-id: ${{ vars.AWS_S3_ACCESS_KEY }}
                    secret-key: ${{ secrets.AWS_S3_ACCESS_SECRET }}
                    path-format: '/ipinfo/$(file)'
                    bucket: 'swiftinit'
                    files: |
                        country.bson.gz,
                        asn.bson.gz

and am running into the error:

Initializing S3 client with bucket [swiftinit] that is from endpoint [s3.amazonaws.com]
initialized s3 client! checking if bucket [swiftinit] exists
Error: failed to run `noelware/s3-action`: Invalid URL

https://github.com/tayloraswift/swift-ip/actions/runs/11963717924/job/33354677055#step:5:23

any idea what i am doing wrong here?

@auguwu
Copy link
Member

auguwu commented Dec 21, 2024

Sorry for the late response but you need the https:// in the URL. You can omit the endpoint option since it'll use the default S3 url, it's only there for S3-compatible servers like MinIO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants