From 853bb694c3ccb4af259d20bc7fcbe6643cb21090 Mon Sep 17 00:00:00 2001 From: Phaeton <808865+Phaeton@users.noreply.github.com> Date: Fri, 27 Oct 2023 12:03:29 -0400 Subject: [PATCH] Change to Workflow Run, versus Push (#366) * ACD154 Photos * Remove twitter actions * Use Workflow run --- .github/workflows/update_readme.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update_readme.yml b/.github/workflows/update_readme.yml index 7814506d..db11491a 100644 --- a/.github/workflows/update_readme.yml +++ b/.github/workflows/update_readme.yml @@ -4,17 +4,14 @@ permissions: contents: write # Allow action to write back changes to repository. on: - push: - branches: ["main"] - paths: - - "plane-alert-db.csv" - - "plane-alert-ukraine.csv" - - "plane-alert-pia.csv" - - "plane_images.csv" - - "scripts/update_readme.py" + workflow_run: + workflows: [checkDerivativesChange] + types: + - completed + branches: [main] jobs: - updateREADME_md: + on-success: if: github.repository == 'sdr-enthusiasts/plane-alert-db' || ${{ vars.CREATE_DERIVATIVES }} name: Update README.md documentation for Changes runs-on: ubuntu-latest