-
Notifications
You must be signed in to change notification settings - Fork 663
49 lines (40 loc) · 1.24 KB
/
set-version.yml
File metadata and controls
49 lines (40 loc) · 1.24 KB
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: Upgrade SQLite version
on:
workflow_dispatch:
inputs:
new_version:
description: 'New SQLite version (x.y.z)'
required: true
type: string
jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '17'
java-package: jdk
cache: 'maven'
- name: Set SQLite version in VERSION
run: |
echo "version=${{ inputs.new_version }}" > VERSION
- name: Update version in POM
run: |
mvn --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ inputs.new_version }}.0-SNAPSHOT -DgenerateBackupPoms=false
- run: git status
- name: Commit and push
uses: EndBug/add-and-commit@v10
with:
message: 'feat(sqlite): upgrade to sqlite ${{ inputs.new_version }}'
default_author: github_actions
- name: Invoke Build Native workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: build-native.yml
wait-for-completion: true
- name: Invoke CI workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: ci.yml