Skip to content

Commit 0483fb7

Browse files
author
Murilo M. Marinho
committed
[GithubActions] Add permission contents write
1 parent 6d29617 commit 0483fb7

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/notebook_to_html.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ on:
1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
1515

16+
17+
1618
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1719
jobs:
1820
# This workflow contains a single job called "build"
1921
build:
2022
# The type of runner that the job will run on
2123
runs-on: ubuntu-latest
24+
25+
# https://stackoverflow.com/questions/75880266/cant-make-push-on-a-repo-with-github-actions
26+
permissions:
27+
contents: write
2228

2329
# Steps represent a sequence of tasks that will be executed as part of the job
2430
steps:
@@ -46,5 +52,4 @@ jobs:
4652
git commit -a -m "[Automated] Latest automated version of the lessons."
4753
git remote set-url origin git@github.com:MarinhoLab/OpenExecutableBooksRobotics.git
4854
git push origin website
49-
env:
50-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+

0 commit comments

Comments
 (0)