Skip to content

Commit 9e0902b

Browse files
Merge pull request #290 from ClojureCivitas/column-combos
Column combos
2 parents d325487 + b2f8438 commit 9e0902b

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/render-and-publish.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ jobs:
3838
fi
3939
echo "Downloading Pages artifact from run $latest_run (artifact $artifact_id)."
4040
gh api "/repos/$REPO/actions/artifacts/$artifact_id/zip" > /tmp/pages.zip
41-
unzip -q /tmp/pages.zip -d site/_site
42-
echo "Contents of site/_site after artifact unzip:"
41+
unzip -q /tmp/pages.zip -d /tmp/artifact_unzip
42+
tar -xf /tmp/artifact_unzip/artifact.tar -C site/_site
43+
echo "Contents of site/_site after artifact extraction:"
4344
ls -la site/_site | head -50
4445
4546
- name: Set up Python
@@ -74,10 +75,21 @@ jobs:
7475
- name: Detect changed Clojure sources
7576
if: github.event_name == 'push'
7677
id: changed_clj
78+
env:
79+
GH_TOKEN: ${{ github.token }}
80+
REPO: ${{ github.repository }}
7781
run: |
7882
set -euo pipefail
7983
git fetch origin main:refs/remotes/origin/main
80-
changed=$(git diff --name-only --diff-filter=ACMR origin/main...HEAD -- 'src/**/*.clj' | tr '\n' ' ')
84+
# Get the commit of the previous successful run (where the artifact came from)
85+
latest_run=$(gh api "/repos/$REPO/actions/workflows/render-and-publish.yml/runs?branch=main&status=success&per_page=1" --jq '.workflow_runs[0].head_commit' || true)
86+
if [ -z "${latest_run:-}" ] || [ "${latest_run}" = "null" ]; then
87+
echo "No previous commit found; doing full rebuild."
88+
echo "files=" >> "$GITHUB_OUTPUT"
89+
exit 0
90+
fi
91+
echo "Comparing against previous artifact commit: $latest_run"
92+
changed=$(git diff --name-only --diff-filter=ACMR "$latest_run" HEAD -- 'src/**/*.clj' | tr '\n' ' ')
8193
if [ -z "$changed" ]; then
8294
echo "No changed Clojure sources detected."
8395
echo "files=" >> "$GITHUB_OUTPUT"

src/data_visualization/aog/column_combinations.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
:date "2026-01-011"
77
:description "Can we plot interesting charts for all columns of a dataset?"
88
:category :data-visualization
9-
:tags [:datavis]
10-
:keywords [:datavis]}}}
9+
:tags [:datavis :clay]
10+
:keywords [:datavis :data :summaries]}}}
1111
(ns data-visualization.aog.column-combinations
1212
(:require
1313
[clojure.string :as str]

0 commit comments

Comments
 (0)