From 4103fb0d3329d744a45b3ab4c7a616141327f730 Mon Sep 17 00:00:00 2001 From: Will Dean Date: Sun, 27 Oct 2024 11:11:11 -0400 Subject: [PATCH] different condition and permission --- .github/workflows/uml.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/uml.yml b/.github/workflows/uml.yml index 12105b8f8..366bd486e 100644 --- a/.github/workflows/uml.yml +++ b/.github/workflows/uml.yml @@ -1,7 +1,7 @@ name: Update the UML Diagrams on: - pull_request: + pull_request_target: types: [closed] branches: [main] paths: @@ -9,7 +9,7 @@ on: jobs: build: - if: github.event.pull_request.head.repo.owner.login == 'pymc-labs' + if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: write-all steps: @@ -41,7 +41,7 @@ jobs: else echo "Committing the changes" git commit -m "Update UML Diagrams" - git push origin HEAD:main + git push origin HEAD:${{ github.event.pull_request.base.ref }} fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}