diff options
| author | Federico Igne <git@federicoigne.com> | 2021-10-22 19:26:23 +0100 |
|---|---|---|
| committer | Federico Igne <git@federicoigne.com> | 2021-10-22 19:26:23 +0100 |
| commit | 30b283eda26c3924407bb554522da6bddc7662f0 (patch) | |
| tree | c1bc58cc7f050795d3df7228abc0a7e5601be0f1 | |
| parent | 1222828a6eec9493cef11234cbca4a83e425e326 (diff) | |
| download | RSAComb-30b283eda26c3924407bb554522da6bddc7662f0.tar.gz RSAComb-30b283eda26c3924407bb554522da6bddc7662f0.zip | |
Add GH action to update pom.xml on build.sbt updates
| -rw-r--r-- | .github/workflows/pom.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/pom.yml b/.github/workflows/pom.yml new file mode 100644 index 0000000..5ef533b --- /dev/null +++ b/.github/workflows/pom.yml | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | name: POM generation | ||
| 2 | |||
| 3 | on: | ||
| 4 | pull_request: | ||
| 5 | push: | ||
| 6 | branches: [ master ] | ||
| 7 | paths: [ 'build.sbt' ] | ||
| 8 | |||
| 9 | jobs: | ||
| 10 | pom: | ||
| 11 | runs-on: ubuntu-latest | ||
| 12 | |||
| 13 | steps: | ||
| 14 | |||
| 15 | - uses: actions/checkout@v2 | ||
| 16 | with: | ||
| 17 | ref: ${{ github.head_ref }} | ||
| 18 | |||
| 19 | - name: Generate POM | ||
| 20 | run: | | ||
| 21 | sbt makePom | ||
| 22 | mv target/scala-*/rsacomb_*.pom pom.xml | ||
| 23 | |||
| 24 | - name: Commit changes | ||
| 25 | uses: stefanzweifel/git-auto-commit-action@v4 | ||
| 26 | with: | ||
| 27 | commit_message: "⬆ Update POM dependences" | ||
| 28 | commit_options: '--no-verify --signoff' | ||
| 29 | file_pattern: pom.xml | ||
| 30 | |||
