-
Notifications
You must be signed in to change notification settings - Fork 34
33 lines (30 loc) · 1.15 KB
/
scala-steward.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This workflow will launch at 00:00 every Sunday
on:
workflow_dispatch:
schedule:
# At 09:00 on day-of-month 1 and 15
# https://crontab.guru/#0_9_1,15_*_*
- cron: '0 9 1,15 * *'
name: Launch Scala Steward
env:
# This is required because SBT is configured to look at env:GITHUB_TOKEN or git:github.token or env:SHELL
# to get a token for publishing even when not executing the publish task. Most of the time, SHELL is set
# but apparently not inside GitHub Actions runners. Setting _something invalid_ satisfies the
# GitHub Packages plugin safely and allows the operation to proceed.
SHELL: "/bin/bash"
jobs:
scala-steward:
runs-on: ubuntu-latest
name: Launch Scala Steward
steps:
- name: Install JDK for Scala Steward use
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Launch Scala Steward
uses: scala-steward-org/scala-steward-action@v2
with:
github-token: ${{ secrets.REPO_GITHUB_TOKEN }}
author-email: "41898282+github-actions[bot]@users.noreply.github.com"
author-name: "github-actions[bot]"