Skip to content

feat: add support for Snom D812 and Snom D815 (#304) #197

feat: add support for Snom D812 and Snom D815 (#304)

feat: add support for Snom D812 and Snom D815 (#304) #197

Workflow file for this run

name: PR for nethserver-tancredi RPM
on:
push:
branches:
- master
jobs:
open-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout tancredi code
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: nethesis/tancredi
path: nethesis/tancredi
- name: Checkout nethserver-tancredi code
uses: actions/checkout@v4
with:
repository: nethesis/nethserver-tancredi
ref: master
token: ${{ secrets.NETHBOT_TOKEN }}
path: nethesis/nethserver-tancredi
- name: "Edit the .spec file"
id: editspec
run: |
cd $GITHUB_WORKSPACE/nethesis/nethserver-tancredi
sed -i -e '/^Source1: / c\Source1: https://github.com/nethesis/tancredi/archive/${{ github.sha }}/tancredi.tar.gz' nethserver-tancredi.spec
IFS=$'\n' mapfile -t commits <<<"$(git diff --word-diff | grep ^Source1 | grep -Eo '[a-f0-9]{40}')"
cd $GITHUB_WORKSPACE/nethesis/tancredi
references=$(git log ${commits[0]}..${commits[1]} | grep -Eo '((nethesis|nethserver)/dev)?#[0-9]+\b' | sed 's|^#|nethesis/tancredi#|' | sort | uniq)
references="${references//$'\n'/'%0A'}"
echo "::set-output name=references::${references}"
- name: Send a pull request to nethserver-tancredi
uses: peter-evans/create-pull-request@v4
with:
path: nethesis/nethserver-tancredi
token: ${{ secrets.NETHBOT_TOKEN }}
committer: NethBot <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
reviewers: andrea-marchionni,Stell0
title: Bump tancredi version
body: |
Triggered by commit ${{ github.repository }}@${{ github.sha }}
References:
${{ steps.editspec.outputs.references }}
branch: upstream-updates
commit-message: |
Bump tancredi version
Update to upstream version ${{ github.repository }}@${{ github.sha }}