Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action to generate Debian changelog entries

This Action automatically generates debian/changelog entries based off of Git metadata using dch.

Configuration

  • fullname: Name to be used in changelog
  • email: Email to be used in changelog
  • distro: Distribution to build for (e.g. buster, focal). Any debian- or ubuntu- prefix will be stripped.

Version scheme

If the event is a tag push, the tag name will be the version, with the distro appended. E.g. 2.1.2~buster.

On normal commit pushes, the base version will be read from a meson.build if it exists, then the previous debian/changelog entry, otherwise falling back to 0.0.0. The git timestamp and hash will be appended, along with distro. E.g. 2.1.2+git202005272117.a2e10b9~buster.

The expectation is that the base version is from the previous release, so the package version is ahead of .

Example

on: [push, pull_request]

jobs:
  build-deb:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        distro: [debian-buster, ubuntu-focal]
    steps:
      - uses: actions/checkout@v2

      - uses: legoktm/gh-action-auto-dch@main
        with:
          fullname: First Last
          email: firstlast@example.org
          distro: ${{ matrix.distro }}

      - uses: legoktm/gh-action-build-deb@debian-buster
        if: matrix.distro == 'debian-buster'
        name: Build package for debian-buster
        id: build-debian-buster
        with:
          args: --no-sign

      - uses: legoktm/gh-action-build-deb@ubuntu-focal
        if: matrix.distro == 'ubuntu-focal'
        name: Build package for ubuntu-focal
        id: build-ubuntu-focal
        with:
          args: --no-sign

      - uses: actions/upload-artifact@v2
        with:
          name: Packages for ${{ matrix.distro }}
          path: output

Related actions

License

Copyright © 2020 Kunal Mehta under the GPL, version 3 or any later version.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages