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

Use setup-java support for sbt-caching #3

Merged
merged 1 commit into from Dec 28, 2022
Merged

Conversation

rtyley
Copy link
Member

@rtyley rtyley commented Dec 28, 2022

@rtyley rtyley merged commit 6cc83a9 into main Dec 28, 2022
Comment on lines 4 to -10
pull_request:
# Triggering CI on default branch improves caching
# see https://docs.github.com/en/free-pro-team@latest/actions/guides/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache
push:
branches:
- main

env:
isPrFromForkedRepo: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != 'guardian' }}
Copy link
Member Author

@rtyley rtyley Dec 28, 2022

Choose a reason for hiding this comment

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

It's safe to get rid of the isPrFromForkedRepo condition - as you can see in this test PR by an external account, it says "1 workflow awaiting approval" & "First-time contributors need a maintainer to approve running workflows." - GitHub has had this safeguard in place since April 2021.

image

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.

None yet

1 participant