Skip to content

Commit 86684e7

Browse files
authored
Merge pull request #98 from target/fix-ss-again
Set unused github.token gitconfig to satisfy GH Pkgs plugin
2 parents 41fc59c + 7a9aee0 commit 86684e7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/scala-steward.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,20 @@ jobs:
1313
runs-on: ubuntu-latest
1414
name: Launch Scala Steward
1515
steps:
16-
- uses: actions/setup-java@v3
16+
- name: Configure unused GitHub Token via git
17+
# This is required because SBT is configured to look at env:GITHUB_TOKEN or git:github.token or env:SHELL
18+
# to get a token for publishing even when not executing the publish task. Most of the time, SHELL is set
19+
# but apparently not inside GitHub Actions runners. Setting _something invalid_ satisfies the
20+
# GitHub Packages plugin safely and allows the operation to proceed.
21+
run: git config github.token unused
22+
- name: Install JDK for Scala Steward use
23+
uses: actions/setup-java@v3
1724
with:
1825
distribution: 'temurin'
1926
java-version: '8'
2027
- name: Launch Scala Steward
2128
uses: scala-steward-org/scala-steward-action@v2
2229
with:
2330
github-token: ${{ secrets.REPO_GITHUB_TOKEN }}
24-
author-email: 12345+octocat@users.noreply.github.com
25-
author-name: "Scala Steward on GitHub Actions"
31+
author-email: "41898282+github-actions[bot]@users.noreply.github.com"
32+
author-name: "github-actions[bot]"

0 commit comments

Comments
 (0)