Skip to content

Commit a55e48c

Browse files
committed
Fix for osmine GitHub Action
1 parent 38d7873 commit a55e48c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/miner.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# https://github.com/simonw/ca-fires-history/blob/main/.github/workflows/scrape.yml
77
# https://github.com/openZH/covid_19/blob/master/.github/workflows/run_scrapers.yml
88

9-
name: Run miner
9+
name: miner
1010

1111
# Controls when the action will run.
1212
on:
@@ -64,8 +64,10 @@ jobs:
6464

6565
- name: Set commit message # If there are file change(s)
6666
if: steps.changes.outputs.changed == 1
67+
# Time stamp would look like 2021-02-02T19:26:18+00:00
6768
run: |
68-
echo "commit_msg=`osmine` Action ${timestamp}" >> $GITHUB_ENV
69+
timestamp=$(date -Iseconds -u)
70+
echo "commit_msg=\`osmine\` action ${timestamp}" >> $GITHUB_ENV
6971
7072
- name: Commit new file
7173
if: steps.changes.outputs.changed == 1

osmine/preprocess/read_config.py

-2
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ def read_config() -> dict:
151151

152152
# Check if GitHub authentication key string looks correct
153153
# AFAIK the token should be exactly 40 alphanumeric characters
154-
barbaz: str = configuration["GitHub_token"][::-1]
155-
print(f"foobar abc-{barbaz}-123", file=sys.stderr)
156154
try:
157155
assert (configuration["GitHub_token"].isalnum() and len(configuration["GitHub_token"]) == 40)
158156
except AssertionError:

0 commit comments

Comments
 (0)