Releases: scala-steward-org/scala-steward-action
v2.1.1
What's changed
- Fix random error occurring when trying to move Coursier binary (#30) @alejandrohdezma
📈 Dependency updates
- Bump @types/node from 14.0.1 to 14.0.4 (#26) @dependabot-preview
- Bump typescript from 3.9.2 to 3.9.3 (#28) @dependabot-preview
- Bump @actions/tool-cache from 1.3.5 to 1.5.5 (#27) @dependabot-preview
Contributors to this release
v2.1.0
v2.0.0
Included changes
⚠️ Breaking changes
gpg-secret-key
input has been removed.
If you want commits created by Scala Steward to be automatically signed with a GPG key, follow this steps:
-
Generate a new GPG key following Github's own tutorial.
-
Add your new GPG key to your user's Github account following Github's own tutorial.
-
Export the GPG private key as an ASCII armored version to your clipboard (change
joe@foo.bar
with your key email address):# macOS gpg --armor --export-secret-key joe@foo.bar | pbcopy # Ubuntu (assuming GNU base64) gpg --armor --export-secret-key joe@foo.bar -w0 | xclip # Arch gpg --armor --export-secret-key joe@foo.bar | sed -z 's;\n;;g' | xclip -selection clipboard -i # FreeBSD (assuming BSD base64) gpg --armor --export-secret-key joe@foo.bar | xclip
-
Paste your clipboard as a new
GPG_PRIVATE_KEY
repository secret. -
If the key is passphrase protected, add the passphrase as another repository secret called
GPG_PASSPHRASE
. -
Import it to the workflow using an action such us crazy-max/ghaction-import-gpg:
- name: Import GPG key uses: crazy-max/ghaction-import-gpg@v2 with: git_user_signingkey: true env: GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
-
Tell Scala Steward to sign commits using the
sign-commits
input:- name: Launch Scala Steward uses: scala-steward-org/scala-steward-action@v2 with: github-token: ${{ secrets.ADMIN_GITHUB_TOKEN }} sign-commits: true
New inputs
The following inputs have been added to the action:
Input | Allowed values | Description |
---|---|---|
repos-file |
File paths | Path to a file containing the list of repositories to update in markdown format (- owner/repo) |
scala-steward-version |
Valid Scala Steward's version | Scala Steward version to use |
ignore-opts-files |
true | false | Whether to ignore "opts" files (such as .jvmopts or .sbtopts ) when found on repositories or not |
sign-commits |
true | false | Whether to sign commits or not |
v1.0.0
When added, this action will launch Scala Steward on your own repository and create PRs to update your Scala dependencies using your own user:
Usage
Create a new .github/workflows/scala-steward.yml
file:
# This workflow will launch at 00:00 every Sunday
on:
schedule:
- cron: '0 0 * * 0'
jobs:
scala-steward:
runs-on: ubuntu-latest
name: Launch Scala Steward
steps:
- name: Launch Scala Steward
uses: alejandrohdezma/scala-steward-action@v1
with:
github-repository: owner/repo
github-token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
gpg-secret-key: ${{ secrets.GPG_SCALA_STEWARD }}
v1
Add first version of the action