Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto-merge Scala Steward PRs

on:
pull_request_target:

permissions:
contents: write
pull-requests: write

jobs:
auto-merge:
if: github.actor == 'scala-steward'
runs-on: ubuntu-latest
steps:
- name: Auto-approve
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Enable auto-merge
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,19 @@ jobs:
require_tests: false
report_paths: 'out/**/test-report.xml'

ci-gate:
name: CI Gate
needs: [build]
if: always()
runs-on: ubuntu-latest
steps:
- name: Check build results
run: |
if [[ "${{ needs.build.result }}" != "success" ]]; then
echo "Build failed or was cancelled"
exit 1
fi

publish:
name: Publish Artifacts
needs: [prepare, build]
Expand Down
2 changes: 1 addition & 1 deletion build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ trait SparkModule extends Cross.Module2[String, String] with SbtModule with Sona
val base = Seq(
mvn"org.apache.xmlbeans:xmlbeans:5.3.0",
mvn"com.norbitltd::spoiwo:2.2.1",
mvn"com.github.pjfanning:excel-streaming-reader:5.1.2",
mvn"com.github.pjfanning:excel-streaming-reader:5.2.0",
mvn"org.apache.logging.log4j:log4j-api:2.24.3",
mvn"com.zaxxer:SparseBitSet:1.3",
mvn"org.apache.commons:commons-collections4:4.5.0",
Expand Down
Loading