Skip to content

Commit

Permalink
Merge pull request #1164 from guardian/ts/fix-dependency-submission-w…
Browse files Browse the repository at this point in the history
…orkflow

Explicitly install sbt in dependency submission workflow
  • Loading branch information
tjsilver authored Oct 16, 2024
2 parents e1990cb + 7be5f58 commit d6e90fe
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/dependency-graph.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
name: Update Dependency Graph
name: Update Dependency Graph for SBT
on:
push:
branches:
- main # default branch of the project
- main
workflow_dispatch:
jobs:
dependency-graph:
name: Update Dependency Graph
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: scalacenter/sbt-dependency-submission@64084844d2b0a9b6c3765f33acde2fbe3f5ae7d3 # v3.1.0
- name: Checkout branch
id: checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Install SBT
id: install
uses: sbt/setup-sbt@8a071aa780c993c7a204c785d04d3e8eb64ef272 # v1.1.0
- name: Submit dependencies
id: submit
uses: scalacenter/sbt-dependency-submission@64084844d2b0a9b6c3765f33acde2fbe3f5ae7d3 # v3.1.0
- name: Log snapshot for user validation
id: validate
run: cat ${{ steps.submit.outputs.snapshot-json-path }} | jq
permissions:
contents: write # this permission is needed to submit the dependency graph
contents: write

0 comments on commit d6e90fe

Please sign in to comment.