ophub / delete-releases-workflows Goto Github PK
View Code? Open in Web Editor NEWThis Actions can delete the Releases and Workflows runs history of a specified repository.
License: GNU General Public License v2.0
This Actions can delete the Releases and Workflows runs history of a specified repository.
License: GNU General Public License v2.0
release可以修改类型为pre-release
或 latest release
日常构建可以标记为 pre-release
,需要长期保留的版本可以修改为latest release
在action执行的时候跳过清理这些版本
2024-03-03T05:44:11.0486550Z ##[warning]Unexpected input(s) 'del_releases', 'del_workflows', valid inputs are ['repo', 'delete_releases', 'delete_tags', 'prerelease_option', 'releases_keep_latest', 'releases_keep_keyword', 'delete_workflows', 'workflows_keep_day', 'workflows_keep_keyword', 'out_log', 'gh_token']
2024-03-03T05:44:11.0540622Z ##[group]Run ophub/delete-releases-workflows@main
2024-03-03T05:44:11.0541248Z with:
2024-03-03T05:44:11.0541686Z del_releases: true
2024-03-03T05:44:11.0542228Z releases_keep_latest: 0
2024-03-03T05:44:11.0542678Z delete_tags: true
2024-03-03T05:44:11.0543148Z del_workflows: true
2024-03-03T05:44:11.0543674Z workflows_keep_day: 0
2024-03-03T05:44:11.0544501Z gh_token: ***
2024-03-03T05:44:11.0544973Z delete_releases: false
2024-03-03T05:44:11.0545550Z prerelease_option: all
2024-03-03T05:44:11.0546025Z delete_workflows: false
2024-03-03T05:44:11.0546730Z out_log: false
2024-03-03T05:44:11.0547255Z ##[endgroup]
2024-03-03T05:44:11.0904407Z ##[group]Run cd ${GITHUB_ACTION_PATH}
2024-03-03T05:44:11.0904992Z �[36;1mcd ${GITHUB_ACTION_PATH}�[0m
2024-03-03T05:44:11.0905513Z �[36;1mecho -e "Current Actions path: ${PWD}"�[0m
2024-03-03T05:44:11.0906177Z �[36;1mecho -e "Current workflow run_id: ${GITHUB_RUN_ID}"�[0m
2024-03-03T05:44:11.0906743Z �[36;1m�[0m
2024-03-03T05:44:11.0907352Z �[36;1mgh_token="***"�[0m
2024-03-03T05:44:11.0908017Z �[36;1m[[ -z "${gh_token}" ]] && echo -e "Please set the token: [ gh_token ]." && exit 1�[0m
2024-03-03T05:44:11.0908725Z �[36;1mrepo=""�[0m
2024-03-03T05:44:11.0909159Z �[36;1m[[ -z "${repo}" ]] && repo="${GITHUB_REPOSITORY}"�[0m
2024-03-03T05:44:11.0909719Z �[36;1mout_log="false"�[0m
2024-03-03T05:44:11.0910070Z �[36;1m�[0m
2024-03-03T05:44:11.0910364Z �[36;1mdelete_releases="false"�[0m
2024-03-03T05:44:11.0911127Z �[36;1m[[ -z "${delete_releases}" ]] && echo -e "Please set whether to delete releases." && exit 1�[0m
2024-03-03T05:44:11.0911926Z �[36;1mdelete_tags="true"�[0m
2024-03-03T05:44:11.0912339Z �[36;1mprerelease_option="all"�[0m
2024-03-03T05:44:11.0912802Z �[36;1mreleases_keep_latest="0"�[0m
2024-03-03T05:44:11.0913262Z �[36;1mreleases_keep_keyword=""�[0m
2024-03-03T05:44:11.0913676Z �[36;1m�[0m
2024-03-03T05:44:11.0913992Z �[36;1mdelete_workflows="false"�[0m
2024-03-03T05:44:11.0914779Z �[36;1m[[ -z "${delete_workflows}" ]] && echo -e "Please set whether to delete workflows." && exit 1�[0m
2024-03-03T05:44:11.0915594Z �[36;1mworkflows_keep_day="0"�[0m
2024-03-03T05:44:11.0916030Z �[36;1mworkflows_keep_keyword=""�[0m
2024-03-03T05:44:11.0916460Z �[36;1m�[0m
2024-03-03T05:44:11.0916759Z �[36;1mmake_command=""�[0m
2024-03-03T05:44:11.0917295Z �[36;1m[[ -n "${repo}" ]] && make_command="${make_command} -r ${repo}"�[0m
2024-03-03T05:44:11.0918198Z �[36;1m[[ -n "${delete_releases}" ]] && make_command="${make_command} -a ${delete_releases}"�[0m
2024-03-03T05:44:11.0919180Z �[36;1m[[ -n "${delete_tags}" ]] && make_command="${make_command} -t ${delete_tags}"�[0m
2024-03-03T05:44:11.0920189Z �[36;1m[[ -n "${prerelease_option}" ]] && make_command="${make_command} -p ${prerelease_option}"�[0m
2024-03-03T05:44:11.0921310Z �[36;1m[[ -n "${releases_keep_latest}" ]] && make_command="${make_command} -l ${releases_keep_latest}"�[0m
2024-03-03T05:44:11.0922459Z �[36;1m[[ -n "${releases_keep_keyword}" ]] && make_command="${make_command} -w ${releases_keep_keyword}"�[0m
2024-03-03T05:44:11.0923575Z �[36;1m[[ -n "${delete_workflows}" ]] && make_command="${make_command} -s ${delete_workflows}"�[0m
2024-03-03T05:44:11.0924624Z �[36;1m[[ -n "${workflows_keep_day}" ]] && make_command="${make_command} -d ${workflows_keep_day}"�[0m
2024-03-03T05:44:11.0925992Z �[36;1m[[ -n "${workflows_keep_keyword}" ]] && make_command="${make_command} -k ${workflows_keep_keyword}"�[0m
2024-03-03T05:44:11.0927007Z �[36;1m[[ -n "${out_log}" ]] && make_command="${make_command} -o ${out_log}"�[0m
2024-03-03T05:44:11.0927866Z �[36;1m[[ -n "${gh_token}" ]] && make_command="${make_command} -g ${gh_token}"�[0m
2024-03-03T05:44:11.0928822Z �[36;1mchmod +x del.sh�[0m
2024-03-03T05:44:11.0929231Z �[36;1m./del.sh ${make_command}�[0m
2024-03-03T05:44:11.0956056Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-03-03T05:44:11.0956671Z ##[endgroup]
2024-03-03T05:44:11.1006584Z Current Actions path: /home/runner/work/_actions/ophub/delete-releases-workflows/main
2024-03-03T05:44:11.1008679Z Current workflow run_id: 8128119837
2024-03-03T05:44:11.1071716Z [�[95m STEPS �[0m] Welcome to use the delete older releases and workflow runs tool!
2024-03-03T05:44:11.1074067Z [�[95m STEPS �[0m] Start Initializing Variables...
2024-03-03T05:44:16.9723518Z [�[94m INFO �[0m] repo: [ qwerttvv/test ]
2024-03-03T05:44:16.9724489Z [�[94m INFO �[0m] delete_releases: [ false ]
2024-03-03T05:44:16.9725623Z [�[94m INFO �[0m] delete_tags: [ true ]
2024-03-03T05:44:16.9726404Z [�[94m INFO �[0m] prerelease_option: [ all ]
2024-03-03T05:44:16.9727187Z [�[94m INFO �[0m] releases_keep_latest: [ 0 ]
2024-03-03T05:44:16.9765975Z [�[94m INFO �[0m] releases_keep_keyword: [ ]
2024-03-03T05:44:16.9769764Z [�[94m INFO �[0m] delete_workflows: [ false ]
2024-03-03T05:44:16.9770560Z [�[94m INFO �[0m] workflows_keep_day: [ 0 ]
2024-03-03T05:44:16.9799870Z [�[94m INFO �[0m] workflows_keep_keyword: [ ]
2024-03-03T05:44:16.9805097Z [�[94m INFO �[0m] out_log: [ false ]
2024-03-03T05:44:16.9805876Z
2024-03-03T05:44:16.9806571Z [�[95m STEPS �[0m] Do not delete releases and tags.
2024-03-03T05:44:16.9807727Z [�[95m STEPS �[0m] Do not delete workflows.
2024-03-03T05:44:16.9808651Z [�[92m SUCCESS �[0m] All process completed successfully.
和私库有关吗?我先私库试试,结果啥也没删
清理工作流程跟发布获取API方式都有问题啊,只能获取前面的30个,工作流程跟发布的都是,超过30个就获取不了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.