Skip to content

Commit

Permalink
Merge pull request #341 from armanbilge/topic/submit-deps-cond
Browse files Browse the repository at this point in the history
Move submit-dependencies condition to job-level, not step-level
  • Loading branch information
armanbilge authored Jul 17, 2022
2 parents 0aa7d07 + 17f8ff4 commit 9f609da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ jobs:

dependency-submission:
name: Submit Dependencies
if: github.event_name != 'pull_request'
strategy:
matrix:
os: [ubuntu-latest]
Expand Down Expand Up @@ -267,7 +268,6 @@ jobs:
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- name: Submit Dependencies
if: github.event_name != 'pull_request'
uses: scalacenter/sbt-dependency-submission@v2

site:
Expand Down
5 changes: 2 additions & 3 deletions ci/src/main/scala/org/typelevel/sbt/TypelevelCiPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,8 @@ object TypelevelCiPlugin extends AutoPlugin {
scalas = List(scalaVersion.value),
javas = List(githubWorkflowJavaVersions.value.head),
steps = githubWorkflowJobSetup.value.toList :+
WorkflowStep
.DependencySubmission
.withCond(Some("github.event_name != 'pull_request'"))
WorkflowStep.DependencySubmission,
cond = Some("github.event_name != 'pull_request'")
))
else Nil

Expand Down

0 comments on commit 9f609da

Please sign in to comment.