<commit_before>name: Update Versions
on: create

# Sets the manifest and other files version upon creation of a release branch
jobs:
  updateVersions:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Get the release branch version
      if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
      uses: valadas/get-release-branch-version@v1
      id: branchVersion
      
    - name: Set versions
      uses: valadas/set-dnn-manifest-versions@v1
      with:
        version: ${{ steps.branchVersion.outputs.manifestSafeVersionString }}
        skipFile: './Build/Cake/unversionedManifests.txt'
        includeSolutionInfo: true
        includeIssueTemplates: true
        includePackageJson: true
        includeDnnReactCommon: true
    - name: Create Pull Request
      uses: peter-evans/create-pull-request@v2.7.1
      with:
        commit-message: Updates versions as per release candidate creation
        title: Updates versions as per release candidate creation
        body: This is a release managemnt task and we are self-approving it for that reason.
        # A comma separated list of labels.
        labels: 'Type: Build/Release'
        # The pull request branch name.
        branch: update-versions/patch
        # The branch suffix type.
        branch-suffix: short-commit-hash<commit_msg>Limit rc action to run only on release branches<commit_after>name: Update Versions
on: create

# Sets the manifest and other files version upon creation of a release branch
jobs:
  updateVersions:
    runs-on: ubuntu-latest
    if: ${{ github.event.ref_type == 'branch' && startsWith(github.event.ref, 'release/') }}
    steps:
    - uses: actions/checkout@v2

    - name: Get the release branch version
      uses: valadas/get-release-branch-version@v1
      id: branchVersion
      
    - name: Set versions
      uses: valadas/set-dnn-manifest-versions@v1
      with:
        version: ${{ steps.branchVersion.outputs.manifestSafeVersionString }}
        skipFile: './Build/Cake/unversionedManifests.txt'
        includeSolutionInfo: true
        includeIssueTemplates: true
        includePackageJson: true
        includeDnnReactCommon: true
    - name: Create Pull Request
      uses: peter-evans/create-pull-request@v2.7.1
      with:
        commit-message: Updates versions as per release candidate creation
        title: Updates versions as per release candidate creation
        body: This is a release managemnt task and we are self-approving it for that reason.
        # A comma separated list of labels.
        labels: 'Type: Build/Release'
        # The pull request branch name.
        branch: update-versions/patch
        # The branch suffix type.
        branch-suffix: short-commit-hash
{'fraction_non_alphanumeric': 0.0784313725490196, 'fraction_numerical': 0.004201680672268907, 'mean_word_length': 2.463030303030303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4111436', 'n_tokens_mistral': 827, 'n_tokens_neox': 760, 'n_words': 243}