-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mergify.yml & upsert-scala-steward-dependencies-branch.yml
- Loading branch information
Thanh
committed
Feb 23, 2024
1 parent
22b1adf
commit 74e3de6
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
queue_rules: | ||
- name: default | ||
conditions: | ||
- "check-success=test" | ||
- "check-success=security/snyk (nationalarchives)" | ||
pull_request_rules: | ||
- name: automatic merge for Scala Steward | ||
conditions: | ||
- author=tna-digital-archiving-jenkins | ||
- "check-success=test" | ||
- "check-success=security/snyk (nationalarchives)" | ||
- or: | ||
- files=build.sbt | ||
- files~=^(!?project/) | ||
actions: | ||
review: | ||
type: APPROVE | ||
message: Automatically approving Scala Steward | ||
queue: | ||
name: default |
20 changes: 20 additions & 0 deletions
20
.github/workflows/upsert-scala-steward-dependencies-branch.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Upsert `scala-steward-dependencies` branch | ||
|
||
on: | ||
push: | ||
branches: master | ||
jobs: | ||
upsert-develop-branch: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
name: Rebase `scala-steward-dependencies` branch to latest `origin/master` | ||
steps: | ||
- name: Checkout scala-steward-dependencies branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: scala-steward-dependencies | ||
fetch-depth: 0 | ||
- name: Rebase `scala-steward-dependencies` branch to latest `origin/master` | ||
run: | | ||
git rebase origin/master | ||
git push -f -u origin scala-steward-dependencies |