Skip to content

Commit

Permalink
fix script again
Browse files Browse the repository at this point in the history
  • Loading branch information
tjsilver committed Aug 21, 2024
1 parent b3394f9 commit f307199
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/sbt-dependency-graph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
- name: Checkout branch
id: checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Submit dependencies
id: submit
uses: scalacenter/sbt-dependency-submission@7ebd561e5280336d3d5b445a59013810ff79325e # v3.0.1
- name: Log snapshot for user validation
id: validate
run: cat ${{ steps.submit.outputs.snapshot-json-path }} | jq
# - name: Submit dependencies
# id: submit
# uses: scalacenter/sbt-dependency-submission@7ebd561e5280336d3d5b445a59013810ff79325e # v3.0.1
# - name: Log snapshot for user validation
# id: validate
# run: cat ${{ steps.submit.outputs.snapshot-json-path }} | jq
- name: Test dependency submission plugin
id: testing
run: ./generate_dependency_trees.sh
Expand Down
2 changes: 1 addition & 1 deletion generate_dependency_trees.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -e

SBT_DEPENDENCY_SUBMISSION_OUTPUT=$(sbt "githubGenerateSnapshot") # {\"ignoredConfigs\":[\"scala-doc-tool\",\"scala-tool\",\"test\"]}")
LINE_WITH_FILE=$(echo "$SBT_DEPENDENCY_SUBMISSION_OUTPUT" | grep 'Dependency snapshot written to')
FILENAME=${LINE_WITH_FILE//"[info] Dependency snapshot written to "/""}
FILENAME=$(echo "$LINE_WITH_FILE" | sed 's/^\[info\] Dependency snapshot written to //')
jq . "$FILENAME" > sbt_dependency_submission_workflow.json
cat sbt_dependency_submission_workflow.json

0 comments on commit f307199

Please sign in to comment.