Skip to content

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

v2.6.0

09 Oct 09:16
3215a73
Compare
Choose a tag to compare

What's changed

📈 Dependency updates

Contributors to this release

@laughedelic and @alejandrohdezma

v2.5.0

07 Sep 12:28
Compare
Choose a tag to compare

🚀 Features

📘 Documentation

📈 Dependency updates

Contributors to this release

@NomadBlacky, @alejandrohdezma, @ryota0624 and @tovbinm

v2.4.0

09 Jun 08:25
30bd25b
Compare
Choose a tag to compare

What's changed

🚀 Features

📈 Dependency updates

Contributors to this release

@alejandrohdezma

Special thanks to @MPV and @bpg for #52

v2.3.0

07 Jun 05:45
9546096
Compare
Choose a tag to compare

What's changed

📈 Dependency updates

Contributors to this release

@alejandrohdezma

v2.2.0

01 Jun 16:09
Compare
Choose a tag to compare

What's changed

  • Add author-* inputs and update README.md (#38) @bpg

📈 Dependency updates

Contributors to this release

@alejandrohdezma, @bpg

v2.1.2

31 May 14:06
Compare
Choose a tag to compare

What's changed

  • Use os.homedir() instead of /home/runner (#41) @MPV
  • Create Scala Steward workspace under home dir instead of /opt (#42) @alejandrohdezma

📈 Dependency updates

Contributors to this release

@MPV, @alejandrohdezma

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 [email protected] with your key email address):

    # macOS
    gpg --armor --export-secret-key [email protected] | pbcopy
    
    # Ubuntu (assuming GNU base64)
    gpg --armor --export-secret-key [email protected] -w0 | xclip
    
    # Arch
    gpg --armor --export-secret-key [email protected] | sed -z 's;\n;;g' | xclip -selection clipboard -i
    
    # FreeBSD (assuming BSD base64)
    gpg --armor --export-secret-key [email protected] | 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 }}