From 30b283eda26c3924407bb554522da6bddc7662f0 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Fri, 22 Oct 2021 19:26:23 +0100 Subject: Add GH action to update pom.xml on build.sbt updates --- .github/workflows/pom.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pom.yml (limited to '.github/workflows') 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 @@ +name: POM generation + +on: + pull_request: + push: + branches: [ master ] + paths: [ 'build.sbt' ] + +jobs: + pom: + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} + + - name: Generate POM + run: | + sbt makePom + mv target/scala-*/rsacomb_*.pom pom.xml + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "⬆ Update POM dependences" + commit_options: '--no-verify --signoff' + file_pattern: pom.xml + -- cgit v1.2.3