mirror of
https://github.com/nicolabs/ansible-role-grub.git
synced 2026-02-22 18:27:47 +01:00
Generate an image from requirements.yml
This commit is contained in:
parent
5b1fbdde73
commit
1954769b2c
34
.github/workflows/requirements2png.yml
vendored
Normal file
34
.github/workflows/requirements2png.yml
vendored
Normal 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
|
||||
Loading…
Reference in a new issue