Generate Draft Release Notes #1439
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Draft Release Notes | |
on: | |
schedule: | |
- cron: '15 1 * * *' | |
# - cron: '0 5 * * *' | |
# - push | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
tags: | |
description: 'Test scenario tags' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build the release notes | |
env: | |
SECRET_SSH_KEY: ${{ secrets.VPP_RELNOTES_PRIVATE_SSH_KEY }} | |
run: | | |
sudo mkdir /run/user/$(id -u) || true | |
sudo chown $(whoami) /run/user/$(id -u) | |
# sudo apt-get install -y --allow-downgrades libllvm6.0=1:6.0-1ubuntu2 | |
# sudo apt-get install clang-format-6.0 | |
sudo apt-get update | |
sudo apt-get install -y coreutils jq | |
git clone https://github.com/FDio/vpp | |
git clone https://github.com/ayourtch/vpp-relops | |
echo "$SECRET_SSH_KEY" >secret_ssh_key | |
chmod 600 secret_ssh_key | |
ssh-agent bash -c 'ssh-add secret_ssh_key; git clone [email protected]:vpp-dev/vpp-release-notes.git' | |
- name: Make the release notes | |
run: | | |
cd vpp | |
export VPP_CHECK_API=yes | |
perl ../vpp-relops/make-relnotes.pl >../vpp-release-notes/RELEASE-GENERATED.md | |
cd .. | |
- name: Push the new release note | |
env: | |
SECRET_SSH_KEY: ${{ secrets.VPP_RELNOTES_PRIVATE_SSH_KEY }} | |
run: | | |
cd vpp-release-notes | |
git config user.email "[email protected]" | |
git config user.name "Andrew Yourtchenko (ghjobs)" | |
git add RELEASE-GENERATED.md || true | |
git commit -a -m "Auto-update at $(date)" | |
ssh-agent bash -c 'ssh-add ../secret_ssh_key; git push origin master' | |