From f1034a687ba44ae9eae982fa4752e6aed7e90d7d Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Sat, 14 Mar 2026 15:28:46 +1100 Subject: [PATCH 1/2] updated CI --- .github/workflows/release-build.yml | 22 +++++++++++++++++++++- Cargo.lock | 2 +- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 4d12b94..b5480b3 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -27,7 +27,27 @@ jobs: id: get-contributors uses: stackql/stackql-exec@v2.2.3 with: - query_file_path: ci-scripts/get-contributors.iql + query: | + SELECT login FROM + ( + SELECT login, SUM(contributions) total_contributions FROM + (SELECT login, contributions + FROM github.repos.contributors + WHERE owner = 'stackql' + AND repo = 'stackql' + UNION + SELECT login, contributions + FROM github.repos.contributors + WHERE owner = 'stackql' + AND repo = 'stackql-deploy' + UNION + SELECT login, contributions + FROM github.repos.contributors + WHERE owner = 'stackql' + AND repo = 'stackql-deploy-rs' ) t + GROUP BY login + ORDER BY total_contributions DESC + ) t1 query_output: csv - name: Save contributors CSV diff --git a/Cargo.lock b/Cargo.lock index 1ff773a..206926f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2011,7 +2011,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "stackql-deploy" -version = "0.1.0" +version = "2.0.0" dependencies = [ "base64", "chrono", From ef9ea5a5dc09bbb600fe92e807493c7ec466c4c8 Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Sat, 14 Mar 2026 15:32:22 +1100 Subject: [PATCH 2/2] updated CI --- .github/workflows/release-build.yml | 30 +++++++++-------------------- ci-scripts/get-contributors.iql | 9 +++++++-- 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index b5480b3..ea9fa5a 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -23,31 +23,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v6 + - name: Pull github provider + id: pull-github-provider + uses: stackql/stackql-exec@v2.2.3 + with: + query: | + REGISTRY PULL github + is_command: true + - name: Fetch contributors id: get-contributors uses: stackql/stackql-exec@v2.2.3 with: - query: | - SELECT login FROM - ( - SELECT login, SUM(contributions) total_contributions FROM - (SELECT login, contributions - FROM github.repos.contributors - WHERE owner = 'stackql' - AND repo = 'stackql' - UNION - SELECT login, contributions - FROM github.repos.contributors - WHERE owner = 'stackql' - AND repo = 'stackql-deploy' - UNION - SELECT login, contributions - FROM github.repos.contributors - WHERE owner = 'stackql' - AND repo = 'stackql-deploy-rs' ) t - GROUP BY login - ORDER BY total_contributions DESC - ) t1 + query_file_path: ci-scripts/get-contributors.iql query_output: csv - name: Save contributors CSV diff --git a/ci-scripts/get-contributors.iql b/ci-scripts/get-contributors.iql index 50849ed..3e44756 100644 --- a/ci-scripts/get-contributors.iql +++ b/ci-scripts/get-contributors.iql @@ -9,7 +9,12 @@ UNION SELECT login, contributions FROM github.repos.contributors WHERE owner = 'stackql' -AND repo = 'stackql-deploy') t +AND repo = 'stackql-deploy' +UNION +SELECT login, contributions +FROM github.repos.contributors +WHERE owner = 'stackql' +AND repo = 'stackql-deploy-rs') t GROUP BY login ORDER BY total_contributions DESC -) t1 \ No newline at end of file +) t1