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@v3

      - name: Get the release branch version
        uses: valadas/get-release-branch-version@v1.0.1
        id: branchVersion

      - name: Set versions
        uses: valadas/set-dnn-manifest-versions@v1.2.0
        with:
          version: ${{ steps.branchVersion.outputs.manifestSafeVersionString }}
          skipFile: "./Build/Tasks/unversionedManifests.txt"
          includeSolutionInfo: true
          includeIssueTemplates: true
          includePackageJson: true
          includeDnnReactCommon: true

      - name: Update Yarn versions
        shell: pwsh
        run: yarn install --mode=update-lockfile --no-immutable

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v4
        with:
          commit-message: Updates versions as per release candidate creation
          title: Updates versions as per release candidate creation
          body: This is a release management 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

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@v3

      - name: Get the release branch version
        uses: valadas/get-release-branch-version@v1.0.1
        id: branchVersion

      - name: Set versions
        uses: valadas/set-dnn-manifest-versions@v1.3.0
        with:
          version: ${{ steps.branchVersion.outputs.manifestSafeVersionString }}
          skipFile: "./Build/Tasks/unversionedManifests.txt"
          includeSolutionInfo: true
          includeIssueTemplates: true
          includePackageJson: true
          includeDnnReactCommon: true

      - name: Update Yarn versions
        shell: pwsh
        run: yarn install --mode=update-lockfile --no-immutable

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v4
        with:
          commit-message: Updates versions as per release candidate creation
          title: Updates versions as per release candidate creation
          body: This is a release management 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

Bump valadas/set-dnn-manifest-versions from 1.2.0 to 1.3.0
Bump valadas/set-dnn-manifest-versions from 1.2.0 to 1.3.0

Bumps [valadas/set-dnn-manifest-versions](https://github.com/valadas/set-dnn-manifest-versions) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/valadas/set-dnn-manifest-versions/releases)
- [Commits](https://github.com/valadas/set-dnn-manifest-versions/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: valadas/set-dnn-manifest-versions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <5bdcd3c0d4d24ae3e71b3b452a024c6324c7e4bb@github.com>