--- {{ ansible_managed | comment }} on: - push name: Ansible Graphviz jobs: build: runs-on: ubuntu-20.04 steps: - name: checkout uses: actions/checkout@v3 with: path: {% raw %}${{ github.repository }}{% endraw %} - name: create png uses: robertdebock/graphviz-action@1.0.7 - name: Commit files run: | cd {% raw %}${{ github.repository }}{% endraw %} 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: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} directory: {% raw %}${{ github.repository }}{% endraw %} force: true branch: png