-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.06 KB
/
requirements2png.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
#
# Ansible managed
#
name: Ansible Graphviz
on:
push:
branches:
- master
- main
paths:
- '.github/workflows/requirements2png.yml'
tags_ignore:
- '*'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- name: checkout
uses: actions/checkout@v4
with:
path: ${{ github.repository }}
- name: create png
uses: buluma/graphviz-action@1.0.0 # TODO: Update action
- 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:
directory: ${{ github.repository }}
force: yes
branch: png