From 10fa640fc1213b3841e6d975e409da4e28f227b0 Mon Sep 17 00:00:00 2001 From: Saleem Hadad Date: Thu, 4 Apr 2024 05:24:59 +0400 Subject: [PATCH 1/3] have diagram on pq --- .github/workflows/diagram.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/diagram.yml b/.github/workflows/diagram.yml index fc1f528..1d7d6e3 100644 --- a/.github/workflows/diagram.yml +++ b/.github/workflows/diagram.yml @@ -1,9 +1,8 @@ name: Create Project diagram on: workflow_dispatch: {} - push: - branches: - - main + pull_request: + branches: [ "main" ] jobs: get_data: runs-on: ubuntu-latest From eb00f8994c93e874926864db47a7be8e86d507ec Mon Sep 17 00:00:00 2001 From: Saleem Hadad Date: Thu, 4 Apr 2024 05:32:50 +0400 Subject: [PATCH 2/3] wip --- .github/workflows/diagram.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/diagram.yml b/.github/workflows/diagram.yml index 1d7d6e3..360a35d 100644 --- a/.github/workflows/diagram.yml +++ b/.github/workflows/diagram.yml @@ -13,3 +13,9 @@ jobs: uses: githubocto/repo-visualizer@0.9.1 with: excluded_paths: "ignore,.github" + artifact_name: "my-diagram" + - name: Get artifact + uses: actions/download-artifact@v2 + with: + name: "my-diagram" + path: "downloads" From 9b49ab1e51d4277967e6a3154cd889e94183dead Mon Sep 17 00:00:00 2001 From: Saleem Hadad Date: Thu, 4 Apr 2024 05:33:59 +0400 Subject: [PATCH 3/3] remove diagram --- .github/workflows/diagram.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/diagram.yml diff --git a/.github/workflows/diagram.yml b/.github/workflows/diagram.yml deleted file mode 100644 index 360a35d..0000000 --- a/.github/workflows/diagram.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Create Project diagram -on: - workflow_dispatch: {} - pull_request: - branches: [ "main" ] -jobs: - get_data: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@master - - name: Repo Visualizer - uses: githubocto/repo-visualizer@0.9.1 - with: - excluded_paths: "ignore,.github" - artifact_name: "my-diagram" - - name: Get artifact - uses: actions/download-artifact@v2 - with: - name: "my-diagram" - path: "downloads"