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

POC: Continues Integration for dropbox_uploaded #558

Closed

Conversation

penchef
Copy link

@penchef penchef commented Dec 1, 2021

Hi @andreafabrizi !

I came across your dropbox_uploader after all other options (dropbox's limus client and dbxcli) didn't work for me.

The main problem was that I needed to upload folders in my GitHub Action workflows and the other options didn't let me manage the secrets easily.

I'm using dropbox_uploader in our automated tests and since I've all this working now, I thought you may like to use some of it for your own automated testing of dropbox_uploader.

===

PR adds ci.yml github actions workflow (see https://docs.github.com/en/actions)

The tests run on every git push to the master branch and on every PR into the master branch:
Screen Shot 2021-12-01 at 4 11 44 PM

The workflow assumes that the repository has access to these GitHub secrets: DROPBOX_OAUTH_APP_KEY, DROPBOX_OAUTH_APP_SECRET, DROPBOX_OAUTH_REFRESH_TOKEN

      # The CI needs these three secrets set up on the repository  
      # see https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository
      OAUTH_APP_KEY: ${{ secrets.DROPBOX_OAUTH_APP_KEY }}
      OAUTH_APP_SECRET: ${{ secrets.DROPBOX_OAUTH_APP_SECRET }}
      OAUTH_REFRESH_TOKEN: ${{ secrets.DROPBOX_OAUTH_REFRESH_TOKEN }}

I have made them temporally available my Dropbox_Uploader fork, but revoked access after my PR passed (so you cannot rerun the workflow anymore, it will fail)

Successful workflow run: https://github.com/livelyhood/Dropbox-Uploader/actions/runs/1527759907?check_suite_focus=true

Comments by the CI on the PR:

livelyhood#1

Failed workflow run: https://github.com/livelyhood/Dropbox-Uploader/runs/4387211689?check_suite_focus=true

Thanks for your tool!

Best
Sebastian (penchef)

@ghost ghost deleted a comment Jan 3, 2022
@ghost ghost deleted a comment Jan 3, 2022
@penchef penchef closed this Oct 4, 2022
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

Successfully merging this pull request may close these issues.

1 participant