forked from microsoft/vscode-azureresourcegroups
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 917 Bytes
/
bump-version-pr.yaml
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
name: Bump version after release
# Run when release is published, or manually triggered
on:
release:
types: [published]
workflow_dispatch:
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Bump version
id: bump
uses: alexweininger/bump-prerelease-version@v0.1.1
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
title: ${{ env.MESSAGE }}
body: Automatically created by ${{ env.RUN_LINK }}
commit-message: ${{ env.MESSAGE }}
branch: bot/bump-${{ steps.bump.outputs.new-version }}
base: main
author: GitHub <noreply@github.com>
token: ${{ secrets.PAT_GITHUB }}
env:
RUN_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
MESSAGE: Bump version after release