Skip to content

Commit 5395342

Browse files
committed
change location of permissions
1 parent 1a4cfb9 commit 5395342

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/uml.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Update the UML Diagrams
22

3-
permissions: write-all
4-
53
on:
64
pull_request:
75
branches: [main]
@@ -15,7 +13,7 @@ on:
1513
jobs:
1614
build:
1715
runs-on: ubuntu-latest
18-
16+
permissions: write-all
1917
steps:
2018
- name: Checkout repository
2119
uses: actions/checkout@v4
@@ -47,7 +45,7 @@ jobs:
4745
echo "Committing the changes"
4846
echo ${GITHUB_HEAD_REF}
4947
git commit -m "Update UML Diagrams"
50-
git push origin HEAD:${GITHUB_HEAD_REF}
48+
git push origin HEAD:${GITHUB_HEAD_REF:-main}
5149
fi
5250
env:
5351
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)