Skip to content

mosquitto: version bump #987

mosquitto: version bump

mosquitto: version bump #987

Workflow file for this run

name: generate_link
on:
push:
branches: [ master ]
paths:
- 'docs/CHANGELOG.md'
# workflow_dispatch:
jobs:
build:
container:
# image: ubuntu:20.04
# image: freetzng/generate
image: ghcr.io/freetz-ng/generate
runs-on: ubuntu-latest
if: github.repository == 'freetz-ng/freetz-ng'
steps:
# - name: update
# run: apt-get -y update && apt-get -y upgrade && apt-get -y dist-upgrade
#
# - name: install
# run: |
# DEBIAN_FRONTEND=noninteractive apt-get -y install \
# git locales netcat curl bsdmainutils xxd libarchive-zip-perl
#
# - name: locale
# run: locale-gen en_US.utf8 && locale-gen de_DE.UTF-8 && update-locale
- name: clone
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
umask 0022
git config --global --add safe.directory $GITHUB_WORKSPACE
git clone https://github-actions:$GITHUB_TOKEN@${GITHUB_SERVER_URL##*/}/$GITHUB_REPOSITORY.git $GITHUB_WORKSPACE --branch $GITHUB_REF_NAME
- name: generate
id: generate
run: |
PKG="$(git log --format=%B -n1 ${{ github.sha }} | sed -nr 's/^(add|bump) ([^ ,]*).*/\2/p')"
[ -z "$PKG" ] && echo "No add or bump." && exit
echo "pkg=$PKG" >> $GITHUB_OUTPUT
PKG="$(echo "$PKG" | tr '[:upper:]' '[:lower:]')"
TYPE=""
for x in make libs host-tools; do [ -e docs/$x/$PKG.md ] && TYPE=$x; done
[ -z "$TYPE" ] && echo -n 'Waiting ' && for x in $(seq 60); do echo -n '.' && sleep 1; done && echo ' done.' && git pull
for x in make libs host-tools; do [ -e docs/$x/$PKG.md ] && TYPE=$x; done
[ -z "$TYPE" ] && echo "No page." && exit
LINK="https://freetz-ng.github.io/freetz-ng/$TYPE/#$PKG"
LINK="https://freetz-ng.github.io/freetz-ng/$TYPE/$PKG"
echo "link=$LINK" >> $GITHUB_OUTPUT
echo "################################################################" && bash -c "echo LINK=$LINK"
- name: comment
if: "contains(steps.generate.outputs.link, 'http')"
uses: peter-evans/commit-comment@v3
with:
sha: ${{ github.sha }}
body: |
See for infos about ${{ steps.generate.outputs.pkg }} and maybe a changelog link:
${{ steps.generate.outputs.link }}