-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 873 Bytes
/
dependabot.yaml
File metadata and controls
37 lines (32 loc) · 873 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
name: Auto Release
on:
push:
branches:
- main
jobs:
version:
name: Setup version
if: github.actor == 'codereaper-automation[bot]'
runs-on: ubuntu-latest
outputs:
version: ${{ steps.bump.outputs.new_version }}
steps:
- uses: actions/checkout@v6
with:
ref: main
fetch-depth: 0
- name: Determine next patch version
id: bump
run: |
latest=$(git describe --tags --abbrev=0 || echo "0.0.0")
version=${latest#v}
IFS='.' read -r major minor patch <<< "$version"
new="$major.$minor.$((patch + 1))"
echo "new_version=$new" >> $GITHUB_OUTPUT
release:
name: Build release
needs: version
uses: ./.github/workflows/build-release.yaml
with:
version: ${{ needs.version.outputs.version }}
event_name: release