Generate an image from requirements.yml

This commit is contained in:
Robert de Bock 2021-01-12 10:41:18 +01:00
parent 5b1fbdde73
commit 1954769b2c

34
.github/workflows/requirements2png.yml vendored Normal file
View file

@ -0,0 +1,34 @@
---
#
# Ansible managed
#
on:
- push
name: Ansible Graphviz
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: ${{ github.repository }}
- name: create png
uses: robertdebock/graphviz-action@1.0.6
- name: Commit files
run: |
cd ${{ github.repository }}
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add requirements.dot requirements.png
git commit -m "Add generated files"
- name: save to png branch
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: ${{ github.repository }}
force: true
branch: png