From 539534278126643b06a5f2c6e843b7ea1ef8079e Mon Sep 17 00:00:00 2001 From: Will Dean Date: Tue, 6 Aug 2024 07:24:04 +0200 Subject: [PATCH] change location of permissions --- .github/workflows/uml.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/uml.yml b/.github/workflows/uml.yml index 111b4ff7..5fba97c6 100644 --- a/.github/workflows/uml.yml +++ b/.github/workflows/uml.yml @@ -1,7 +1,5 @@ name: Update the UML Diagrams -permissions: write-all - on: pull_request: branches: [main] @@ -15,7 +13,7 @@ on: jobs: build: runs-on: ubuntu-latest - + permissions: write-all steps: - name: Checkout repository uses: actions/checkout@v4 @@ -47,7 +45,7 @@ jobs: echo "Committing the changes" echo ${GITHUB_HEAD_REF} git commit -m "Update UML Diagrams" - git push origin HEAD:${GITHUB_HEAD_REF} + git push origin HEAD:${GITHUB_HEAD_REF:-main} fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}