File: submodule-bump.yml

package info (click to toggle)
gammaray 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,620 kB
  • sloc: cpp: 94,712; ansic: 2,227; sh: 336; python: 164; yacc: 90; lex: 82; xml: 61; makefile: 32
file content (47 lines) | stat: -rw-r--r-- 1,542 bytes parent folder | download
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
# SPDX-FileCopyrightText: 2024 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
#
# SPDX-License-Identifier: MIT

on:
  workflow_dispatch:
    inputs:
      submodule:
        type: choice
        description: "Select an option"
        options:
          - "Only print current and available versions"
          - KDStateMachineEditor

name: bump submodules
jobs:
  dependency-bump:
    runs-on: ubuntu-24.04
    steps:
      - name: Checkout sources
        uses: actions/checkout@v4
        with:
          submodules: false

      - name: Checkout submodules
        run: |
          git submodule update --init --force --recursive -- 3rdparty/*
          git clone https://github.com/KDABLabs/ci-release-tools.git

      - name: Configure Git committer
        run: |
          git config --global user.name "KDAB GitHub Actions"
          git config --global user.email "gh@kdab"

      - name: Print current and available versions
        if: inputs.submodule == 'Only print current and available versions'
        run: |
          python3 ./ci-release-tools/src/update_dependencies.py --print-dependency-versions --proj-name GammaRay --repo-path .
        env:
          GH_TOKEN: ${{ github.token }}

      - name: Bump submodule
        if: inputs.submodule != 'Only print current and available versions'
        run: |
          python3 ./ci-release-tools/src/update_dependencies.py --update-dependency ${{inputs.submodule}} --proj-name GammaRay --repo-path .
        env:
          GH_TOKEN: ${{ github.token }}