Commit d8e8d1e
authored
Fix docs gh-pages publish authentication (#20890)
Summary:
- Stop passing DOC_BUILD_GITHUB_TOKEN into the docs gh-pages publish
job.
- Stop overriding `origin` with that token before pushing generated
docs.
- Let the checkout credentials use the job's existing `contents: write`
permission for the gh-pages push.
Failure fixed:
-
https://github.com/pytorch/executorch/actions/runs/29237660083/job/86778638704
failed at `git push -f` with `Permission to pytorch/executorch.git
denied to GregoryComer`.
Testing:
- git diff --check
Notes:
- PyYAML/actionlint are not installed in this local environment, so I
could not run a workflow syntax parser locally.1 parent 3b27657 commit d8e8d1e
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 137 | | |
142 | 138 | | |
143 | 139 | | |
| |||
0 commit comments