We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaf0a98 commit 0f12f5eCopy full SHA for 0f12f5e
.github/workflows/build.yml
@@ -22,7 +22,7 @@ jobs:
22
python python/create_readme.py
23
cat README.md
24
env:
25
- github_token: ${{ secrets.GITHUB_TOKEN }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26
- name: Commit changes
27
run: |
28
git config user.name "STAC CI"
python/create_readme.py
@@ -13,8 +13,10 @@
13
14
headers = {}
15
env = dict(os.environ)
16
-if "github-token" in env:
17
- headers["Authorization"] = " ".join(["token", os.environ["github-token"]])
+if "GITHUB_TOKEN" in env:
+ headers["Authorization"] = " ".join(["Bearer", os.environ["GITHUB_TOKEN"]])
18
+else:
19
+ logger.warn("No GITHUB_TOKEN found in env")
20
21
def from_gh(response, external = False) -> dict:
data = {
0 commit comments