summaryrefslogtreecommitdiffstats
path: root/.github/workflows/hosted-post-merge_version_update.yml
blob: d6cf74a5f95667969a09160a3f333b9c59ba42ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: hosted-post-merge_version_update

on:
  workflow_dispatch:

env:
  CARGO_TERM_COLOR: always

jobs:
  versioning:
    runs-on: ubuntu-20.04

    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - run: |
          git config --global user.email "info@thin-edge.io"
          git config --global user.name "Versioneer"

      - name: enable toolchain via github action
        uses: actions-rs/toolchain@v1
        with:
          toolchain: 1.62.1
          components: cargo
          override: true

      - name: Enable cache
        uses: Swatinem/rust-cache@v1

      - name: Install cargo-release
        uses: actions-rs/cargo@v1
        with:
          command: install
          args: --version 0.21.0 cargo-release

      - name: Increment version and tag
        uses: actions-rs/cargo@v1
        with:
          command: release
          args: patch --no-publish --no-push --no-tag -vv --no-dev-version --no-confirm --execute

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v4
        with:
          commit-message: Patch version bump
          delete-branch: true
          title: Patch version bump
          body: Patch version bump
          reviewers: rina23q