-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 1.12 KB
/
bump-version.yml
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
name: Bump Version
on:
pull_request:
types:
- closed
branches:
- main
- development
jobs:
tag:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
fetch-depth: '0'
- name: Github Tag Bump
uses: anothrNick/[email protected]
if: github.event.pull_request.base.ref == 'main'
env:
# NOTE: Using the GITHUB_TOKEN will prevent this workflow's actions from
# triggering subsequent actions (like the Core Release workflow); to
# allow these tags to dispatch new workflows, you must pass in a PAT
# see: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
GITHUB_TOKEN: ${{ secrets.PIXLISE_GH_PAT }}
WITH_V: true
DEFAULT_BUMP: minor
- name: Github Tag Bump
if: github.event.pull_request.base.ref == 'development'
uses: anothrNick/[email protected]
env:
# NOTE: see above
GITHUB_TOKEN: ${{ secrets.PIXLISE_GH_PAT }}
WITH_V: true
DEFAULT_BUMP: patch