Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: |
apt-get update -qq && apt-get install -y -qq make
# running as root: mark the checkout safe so the data.json commit stamp works
git config --global --add safe.directory "$GITHUB_WORKSPACE"
sage -pip install --quiet --no-cache-dir pandas seaborn
make sweeps derived data figures PYTHON="sage -python"

Expand Down
3 changes: 2 additions & 1 deletion export_site_data.sage
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ def _commit():
['git', 'rev-parse', '--short', 'HEAD'],
cwd=_dir, stderr=subprocess.DEVNULL).decode().strip()
except Exception:
return 'unknown'
sha = os.environ.get('GITHUB_SHA', '')
return sha[:7] if sha else 'unknown'


data = {
Expand Down
Loading