Skip to content

Don't run Docker workflow on push to forks#2324

Merged
JelleZijlstra merged 1 commit into
psf:mainfrom
Jackenmen:dont_run_workflows_requiring_tokens
Jun 9, 2021
Merged

Don't run Docker workflow on push to forks#2324
JelleZijlstra merged 1 commit into
psf:mainfrom
Jackenmen:dont_run_workflows_requiring_tokens

Conversation

@Jackenmen
Copy link
Copy Markdown
Contributor

Docker workflow is used for publishing images to DockerHub which I'm pretty sure people that just try to contribute wouldn't want and the workflow fails because the forks don't have the credentials set up. While it is set to only run on main some people like to keep their fork up-to-date and GitHub even acknowledged that recently making it extremely easy to update from the web.

This is also already being done for test.yml workflow so not much reason not to include it here too :)

@ichard26 ichard26 added the ci: skip news Pull requests that don't need a changelog entry. label Jun 9, 2021
Copy link
Copy Markdown
Collaborator

@ichard26 ichard26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whelp I'm copying and pasting for bandersnatch which quite literally is facing the exact same issue. Thanks!

edit: it turns out the issue is similar but has a nuance that means there is more complexity involved than expected, my memory sucks :/

@JelleZijlstra JelleZijlstra merged commit 2c5150c into psf:main Jun 9, 2021
@Jackenmen Jackenmen deleted the dont_run_workflows_requiring_tokens branch June 9, 2021 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: skip news Pull requests that don't need a changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants