Skip to content

Commit

Permalink
Merge pull request #1137 from wellcomecollection/call-reusable-format…
Browse files Browse the repository at this point in the history
…ting-workflow

set up new autoformat workflow
  • Loading branch information
agnesgaroux authored Sep 4, 2024
2 parents bbdc459 + 4f95a82 commit 34a06a6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
steps:
- command: |
./builds/run_formatting.sh
.buildkite/scripts/push_autoformatting_changes.sh
./builds/run_linting.sh
label: "autoformat"
label: "linting"
agents:
queue: "scala"
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/autoformat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Runs auto-formatting script on push to any branch
name: "Scala auto-formatting"

on: push

permissions:
id-token: write
contents: write

jobs:
autoformat:
uses: wellcomecollection/.github/.github/workflows/scala_formatting.yml@main
secrets: inherit
3 changes: 3 additions & 0 deletions builds/run_sbt_task_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ else
fi

docker run --tty --rm \
-e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-}" \
-e AWS_SECRET_KEY="${AWS_SECRET_KEY:-}" \
-e AWS_SESSION_TOKEN="${AWS_SESSION_TOKEN:-}" \
--volume ~/.sbt:/root/.sbt \
--volume ~/.ivy2:/root/.ivy2 \
--volume "$HOST_COURSIER_CACHE:/root/$LINUX_COURSIER_CACHE" \
Expand Down

0 comments on commit 34a06a6

Please sign in to comment.