You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/09/08 18:20:15 UTC

(tooling-asf-example) branch main updated: Add a workflow to record distributions on the ATR

This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-asf-example.git


The following commit(s) were added to refs/heads/main by this push:
     new 560c840  Add a workflow to record distributions on the ATR
560c840 is described below

commit 560c840bb3b806bffe48f6b3b85c3ddc0e99bab4
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Mon Sep 8 19:19:57 2025 +0100

    Add a workflow to record distributions on the ATR
---
 .github/workflows/announce-release-on-atr.yaml    |  2 +-
 .github/workflows/build-and-rsync-to-atr.yaml     |  2 +-
 .github/workflows/record-distribution-on-atr.yaml | 55 +++++++++++++++++++++++
 .github/workflows/resolve-vote-on-atr.yaml        |  2 +-
 pyproject.toml                                    |  4 +-
 src/asf/example/__init__.py                       |  2 +-
 uv.lock                                           |  4 +-
 7 files changed, 63 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/announce-release-on-atr.yaml b/.github/workflows/announce-release-on-atr.yaml
index 961463f..950b111 100644
--- a/.github/workflows/announce-release-on-atr.yaml
+++ b/.github/workflows/announce-release-on-atr.yaml
@@ -44,7 +44,7 @@ jobs:
           persist-credentials: false
 
       - name: Announce release on ATR
-        uses: apache/tooling-actions/release-on-atr@12f29cfe2ceeac16e9aabfe880462d2a45425e82
+        uses: apache/tooling-actions/release-on-atr@0613f93144f101a63529a380a1a1a031081da4a0
         with:
           version: ${{ inputs.version }}
           announce: 'true'
diff --git a/.github/workflows/build-and-rsync-to-atr.yaml b/.github/workflows/build-and-rsync-to-atr.yaml
index 7620f69..655e737 100644
--- a/.github/workflows/build-and-rsync-to-atr.yaml
+++ b/.github/workflows/build-and-rsync-to-atr.yaml
@@ -38,7 +38,7 @@ jobs:
           sha256sum dist/*
 
       - name: Upload to ATR using a local composite action
-        uses: apache/tooling-actions/upload-to-atr@12f29cfe2ceeac16e9aabfe880462d2a45425e82
+        uses: apache/tooling-actions/upload-to-atr@0613f93144f101a63529a380a1a1a031081da4a0
         with:
           asf-uid: sbp
           project: tooling
diff --git a/.github/workflows/record-distribution-on-atr.yaml b/.github/workflows/record-distribution-on-atr.yaml
new file mode 100644
index 0000000..16b74b2
--- /dev/null
+++ b/.github/workflows/record-distribution-on-atr.yaml
@@ -0,0 +1,55 @@
+name: record-distribution-on-atr
+on:
+  workflow_dispatch:
+    inputs:
+      version:
+        description: Release version
+        required: true
+        type: string
+      platform:
+        description: Distribution platform
+        required: true
+        type: string
+      distribution_owner_namespace:
+        description: Owner namespace (optional)
+        required: false
+        type: string
+      distribution_package:
+        description: Distribution package
+        required: true
+        type: string
+      distribution_version:
+        description: Distribution version
+        required: true
+        type: string
+      staging:
+        description: Use staging (true or false)
+        required: false
+        default: 'false'
+        type: string
+
+permissions: { contents: read }
+
+jobs:
+  record-distribution:
+    runs-on: ubuntu-22.04
+    permissions:
+      id-token: write
+      contents: read
+
+    steps:
+      - name: Checkout (shallow, no persisted credentials)
+        uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
+        with:
+          fetch-depth: 1
+          persist-credentials: false
+
+      - name: Record distribution on ATR
+        uses: apache/tooling-actions/record-atr-distribution@0613f93144f101a63529a380a1a1a031081da4a0
+        with:
+          version: ${{ inputs.version }}
+          platform: ${{ inputs.platform }}
+          distribution-owner-namespace: ${{ inputs.distribution_owner_namespace }}
+          distribution-package: ${{ inputs.distribution_package }}
+          distribution-version: ${{ inputs.distribution_version }}
+          staging: '${{ inputs.staging }}'
diff --git a/.github/workflows/resolve-vote-on-atr.yaml b/.github/workflows/resolve-vote-on-atr.yaml
index c0b45df..a3eb877 100644
--- a/.github/workflows/resolve-vote-on-atr.yaml
+++ b/.github/workflows/resolve-vote-on-atr.yaml
@@ -32,7 +32,7 @@ jobs:
           persist-credentials: false
 
       - name: Resolve vote on ATR
-        uses: apache/tooling-actions/release-on-atr@12f29cfe2ceeac16e9aabfe880462d2a45425e82
+        uses: apache/tooling-actions/release-on-atr@0613f93144f101a63529a380a1a1a031081da4a0
         with:
           version: ${{ inputs.version }}
           resolve: "true"
diff --git a/pyproject.toml b/pyproject.toml
index 1841ff8..68c497a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
 [project]
 name            = "asf-example"
 # This is automatically updated
-version         = "0.0.1-dev28"
+version         = "0.0.1-dev29"
 description     = "Example package for ASF Tooling"
 readme          = "README.md"
 requires-python = ">=3.13"
@@ -48,4 +48,4 @@ select = [
 
 [tool.uv]
 # This is automatically updated
-exclude-newer = "2025-09-08T15:45:57Z"
+exclude-newer = "2025-09-08T18:19:25Z"
diff --git a/src/asf/example/__init__.py b/src/asf/example/__init__.py
index 32d7d6e..506a5d2 100644
--- a/src/asf/example/__init__.py
+++ b/src/asf/example/__init__.py
@@ -37,7 +37,7 @@ import tomlkit.items
 
 PROJECT: Final[str] = "asf-example"
 # This is automatically updated
-VERSION: Final[str] = "0.0.1-dev28"
+VERSION: Final[str] = "0.0.1-dev29"
 
 
 class BumpMode(enum.Enum):
diff --git a/uv.lock b/uv.lock
index 2bb24f9..c0da7e9 100644
--- a/uv.lock
+++ b/uv.lock
@@ -3,11 +3,11 @@ revision = 3
 requires-python = ">=3.13"
 
 [options]
-exclude-newer = "2025-09-08T15:45:57Z"
+exclude-newer = "2025-09-08T18:19:25Z"
 
 [[package]]
 name = "asf-example"
-version = "0.0.1.dev28"
+version = "0.0.1.dev29"
 source = { editable = "." }
 dependencies = [
     { name = "pygit2" },


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org