<commit_before>name: release

on:
  push:
    branches:
      - 'master'

jobs:
  maven-release:
    runs-on: ubuntu-18.04
    steps:
      - name: Check out Git repository
        uses: actions/checkout@v2

      - name: Install Java and Maven
        uses: actions/setup-java@v2
        with:
          java-version: '8'
          distribution: 'zulu'

      - name: Unsnapshot version
        run:  mvn versions:set -DremoveSnapshot

      - name: Release Maven package
        uses: samuelmeuli/action-maven-publish@v1
        with:
          maven_profiles: release
          gpg_private_key: ${{ secrets.gpg_private_key }}
          gpg_passphrase: ${{ secrets.gpg_passphrase }}
          nexus_username: ${{ secrets.MAVEN_USERNAME }}
          nexus_password: ${{ secrets.MAVEN_PASSWORD }}

      - name: upload packages
        uses: actions/upload-artifact@v3
        with:
          name: target
          path: target/hsac-fitnesse-plugin-*.jar

  github-release:
    needs: [maven-release]
    runs-on: ubuntu-18.04
    steps:
      - name: Check out Git repository
        uses: actions/checkout@v2

      - name: Install Java and Maven
        uses: actions/setup-java@v2
        with:
          java-version: '8'
          distribution: 'zulu'

      - name: download packages
        uses: actions/download-artifact@v3
        with:
          name: target

      - name: Unsnapshot version
        run:  mvn versions:set -DremoveSnapshot

      - id: get-version
        run: |
          VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
          echo "::set-output name=version::$VERSION"

      - name: Create changelog text
        id: changelog
        uses: loopwerk/tag-changelog@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          exclude_types: other,doc,chore

      - name: Configure git
        run: |
          git config --global user.email "<EMAIL>"
          git config --global user.name "GitHub Action"

      - name: Commit pom.xml without -SNAPSHOT
        run: |
          git add pom.xml
          git commit -m "Prepare for release"
          git push origin master

      - name: Create Release
        id: createRelease
        uses: softprops/action-gh-release@v1
        with:
          tag_name: ${{ steps.get-version.outputs.version }}
          body: ${{ steps.changelog.outputs.changes }}
          draft: false
          prerelease: false
          files: |
            target/hsac-fitnesse-plugin-*.jar

  update-version:
    needs: [github-release]
    runs-on: ubuntu-18.04
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Install Java and Maven
        uses: actions/setup-java@v2
        with:
          java-version: '8'
          distribution: 'zulu'

      - name: Configure git
        run: |
          git config --global user.email "<EMAIL>"
          git config --global user.name "GitHub Action"

      - name: Pull changes from github-release job
        run: |
          git pull origin

      - name: Update version
        run: |
          mvn -B release:update-versions -DautoVersionSubmodules=true

      - name: Push pom.xml with next -SNAPSHOT version to repository
        run: |
          git add pom.xml
          git commit -m "Prepare for next developments"
          git push origin master
<commit_msg>Update github action to publish compiled package take 3<commit_after>name: release

on:
  push:
    branches:
      - 'master'

jobs:
  maven-release:
    runs-on: ubuntu-18.04
    steps:
      - name: Check out Git repository
        uses: actions/checkout@v2

      - name: Install Java and Maven
        uses: actions/setup-java@v2
        with:
          java-version: '8'
          distribution: 'zulu'

      - name: Unsnapshot version
        run:  mvn versions:set -DremoveSnapshot

      - name: Release Maven package
        uses: samuelmeuli/action-maven-publish@v1
        with:
          maven_profiles: release
          gpg_private_key: ${{ secrets.gpg_private_key }}
          gpg_passphrase: ${{ secrets.gpg_passphrase }}
          nexus_username: ${{ secrets.MAVEN_USERNAME }}
          nexus_password: ${{ secrets.MAVEN_PASSWORD }}

      - name: upload packages
        uses: actions/upload-artifact@v3
        with:
          name: target
          path: target/hsac-fitnesse-plugin-*.jar

  github-release:
    needs: [maven-release]
    runs-on: ubuntu-18.04
    steps:
      - name: Check out Git repository
        uses: actions/checkout@v2

      - name: Install Java and Maven
        uses: actions/setup-java@v2
        with:
          java-version: '8'
          distribution: 'zulu'

      - name: download packages
        uses: actions/download-artifact@v3
        with:
          name: target
          path: target

      - name: Unsnapshot version
        run:  mvn versions:set -DremoveSnapshot

      - id: get-version
        run: |
          VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
          echo "::set-output name=version::$VERSION"

      - name: Create changelog text
        id: changelog
        uses: loopwerk/tag-changelog@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          exclude_types: other,doc,chore

      - name: Configure git
        run: |
          git config --global user.email "<EMAIL>"
          git config --global user.name "GitHub Action"

      - name: Commit pom.xml without -SNAPSHOT
        run: |
          git add pom.xml
          git commit -m "Prepare for release"
          git push origin master

      - name: Create Release
        id: createRelease
        uses: softprops/action-gh-release@v1
        with:
          tag_name: ${{ steps.get-version.outputs.version }}
          body: ${{ steps.changelog.outputs.changes }}
          draft: false
          prerelease: false
          files: |
            target/hsac-fitnesse-plugin-*.jar

  update-version:
    needs: [github-release]
    runs-on: ubuntu-18.04
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: Install Java and Maven
        uses: actions/setup-java@v2
        with:
          java-version: '8'
          distribution: 'zulu'

      - name: Configure git
        run: |
          git config --global user.email "<EMAIL>"
          git config --global user.name "GitHub Action"

      - name: Pull changes from github-release job
        run: |
          git pull origin

      - name: Update version
        run: |
          mvn -B release:update-versions -DautoVersionSubmodules=true

      - name: Push pom.xml with next -SNAPSHOT version to repository
        run: |
          git add pom.xml
          git commit -m "Prepare for next developments"
          git push origin master

{'fraction_non_alphanumeric': 0.09221944403588762, 'fraction_numerical': 0.007795264009413149, 'mean_word_length': 1.7834629553827261, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4794971', 'n_tokens_mistral': 2058, 'n_tokens_neox': 1957, 'n_words': 530}