Skip to content

Commit

Permalink
change location of permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
wd60622 committed Aug 6, 2024
1 parent 1a4cfb9 commit 5395342
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/uml.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Update the UML Diagrams

permissions: write-all

on:
pull_request:
branches: [main]
Expand All @@ -15,7 +13,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest

permissions: write-all
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -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 }}

0 comments on commit 5395342

Please sign in to comment.