Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Olda-Hal committed Mar 21, 2024
1 parent 2156e58 commit 9351f51
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 53 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/convert.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Convert Drawio to Image

on:
[push]
workflow_dispatch:

jobs:
Convert:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Download DrawIO
run: |
sudo snap install drawio
- name: Convert to Image
run: |
drawio -x -f png -o Diagram.png src/moucnik_diagram.drawio
- name: Commit
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
COMMIT_MSG: |
Convert Image
run: |
git config user.email "actions@github"
git config user.name "Github Actions"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git add .
git pull origin ${GITHUB_REF}
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin HEAD:${GITHUB_REF})
21 changes: 0 additions & 21 deletions .github/workflows/converter.yml

This file was deleted.

7 changes: 0 additions & 7 deletions Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

24 changes: 0 additions & 24 deletions action.yml

This file was deleted.

0 comments on commit 9351f51

Please sign in to comment.