Skip to content

Releases: scala-steward-org/scala-steward-action

v2.1.1

21 May 14:06
Compare
Choose a tag to compare

What's changed

📈 Dependency updates

Contributors to this release

@alejandrohdezma, @marcelocarlos & @bpg

v2.1.0

19 May 10:14
Compare
Choose a tag to compare

What changes are included?

🐛 Fix bug in handling repos-file input #25

☝️ It was preventing the action to be used if the repos-file input weren't used.

Thanks to @bpg for find and reporting it 👏

v2.0.0

18 May 09:57
4295fdd
Compare
Choose a tag to compare

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:

  1. Generate a new GPG key following Github's own tutorial.

  2. Add your new GPG key to your user's Github account following Github's own tutorial.

  3. 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
  4. Paste your clipboard as a new GPG_PRIVATE_KEY repository secret.

  5. If the key is passphrase protected, add the passphrase as another repository secret called GPG_PASSPHRASE.

  6. 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 }}
  7. 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

18 May 09:34
Compare
Choose a tag to compare

When added, this action will launch Scala Steward on your own repository and create PRs to update your Scala dependencies using your own user:

example-pr

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

30 Apr 18:17
Compare
Choose a tag to compare
Add first version of the action