This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new f1ea176b ci: remove gemfury clean step (#1108)
f1ea176b is described below
commit f1ea176b1bbf7724472214808d56c324d60134fe
Author: David Li <[email protected]>
AuthorDate: Tue Sep 26 16:24:00 2023 -0400
ci: remove gemfury clean step (#1108)
It appears Gemfury disabled the API we were using to delete old
versions, so there's no point in that anymore.
Fixes #1085.
---
.github/workflows/packaging.yml | 19 -------------------
ci/scripts/gemfury_clean.rb | 42 -----------------------------------------
2 files changed, 61 deletions(-)
diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml
index 7d4534df..c756d32f 100644
--- a/.github/workflows/packaging.yml
+++ b/.github/workflows/packaging.yml
@@ -958,22 +958,3 @@ jobs:
./ci/scripts/python_wheel_upload.sh upload-staging/adbc_*.tar.gz
upload-staging/*.whl
env:
GEMFURY_PUSH_TOKEN: ${{ secrets.GEMFURY_PUSH_TOKEN }}
-
- clean-gemfury:
- name: "Clean old releases"
- runs-on: ubuntu-latest
- if: ${{ !startsWith(github.ref, 'refs/tags/') }}
- needs:
- - upload-gemfury
- steps:
- - uses: actions/checkout@v3
- with:
- fetch-depth: 0
- persist-credentials: true
-
- - name: Clean old releases
- run: |
- gem install --user-install gemfury
- ruby ./ci/scripts/gemfury_clean.rb
- env:
- GEMFURY_API_TOKEN: ${{ secrets.GEMFURY_API_TOKEN }}
diff --git a/ci/scripts/gemfury_clean.rb b/ci/scripts/gemfury_clean.rb
deleted file mode 100755
index ad74883a..00000000
--- a/ci/scripts/gemfury_clean.rb
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env ruby
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# Clean old releases from Gemfury.
-
-require "gemfury"
-
-client = Gemfury::Client.new(user_api_key: ENV["GEMFURY_API_TOKEN"])
-
-client.list.each do |artifact|
- puts artifact["name"]
- versions = client.versions(artifact["name"])
- versions.sort_by! { |v| v["created_at"] }
-
- # Keep all versions uploaded within 2 days of the last uploaded version
- cutoff = DateTime.parse(versions.last['created_at']) - 2.0
-
- versions.each do |version|
- time = DateTime.parse(version['created_at'])
- if time < cutoff
- client.yank_version(artifact["name"], version["version"])
- puts "Yanked #{artifact['name']} #{version['version']} (created
#{version['created_at']})"
- else
- puts "Kept #{artifact['name']} #{version['version']} (created
#{version['created_at']})"
- end
- end
-end