forked from Auto-Mech/test-release-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1022 Bytes
/
bump.yml
File metadata and controls
41 lines (33 loc) · 1022 Bytes
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
name: bump
on:
pull_request_target:
types:
- closed
permissions:
contents: write # needed for pushing tags/commits
jobs:
bump:
# Only run if PR was merged AND has the bump label
if: >
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'bump:patch')
runs-on: ubuntu-latest
steps:
# We check out the BASE branch — this is now the merged code — SAFE
- name: Checkout merged code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
fetch-depth: 0
# Environment
- name: Set up Pixi
uses: prefix-dev/setup-pixi@v0.8.9
# Git identity
- name: Set Git identity
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
# Bump version
- name: Bump version (patch)
run: |
pixi run bumpver update --patch