We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4cfb9 commit 5395342Copy full SHA for 5395342
.github/workflows/uml.yml
@@ -1,7 +1,5 @@
1
name: Update the UML Diagrams
2
3
-permissions: write-all
4
-
5
on:
6
pull_request:
7
branches: [main]
@@ -15,7 +13,7 @@ on:
15
13
jobs:
16
14
build:
17
runs-on: ubuntu-latest
18
+ permissions: write-all
19
steps:
20
- name: Checkout repository
21
uses: actions/checkout@v4
@@ -47,7 +45,7 @@ jobs:
47
45
echo "Committing the changes"
48
46
echo ${GITHUB_HEAD_REF}
49
git commit -m "Update UML Diagrams"
50
- git push origin HEAD:${GITHUB_HEAD_REF}
+ git push origin HEAD:${GITHUB_HEAD_REF:-main}
51
fi
52
env:
53
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments